pep8
Fix Django 1.6 compatibility

and drop Django 1.5 support