Cleaned up urls.py and views.py and checked for pep8 compliance