Updated convert.py to pep8