Tidied up views.

* Somewhat more PEP8 compliant.