clean up views.py to pep8