Flake8 fixes since manage.py moved