Django Refactor
- Refactoring views.py for PEP8 compatibility.