Upgraded Django, flake8 and pycopg