Upgrade to Django 1.5, various pep8 changes