pep8
improve the application to work with Django 1.7