Switch to class based views.
Fix a PEP8 violation.
Fix import style.