Updated prob9.py to comply with PEP8.