Created assgn9.py for the python code