pylint fixes for manage.py