tidy views.py