Apply pep8 formatting to index.py