fixed some pylint gripes with views.py