Clean-up views.py