Made controller (mostly) satisfy flake8