optimized imports in views.py to remove unneccesary imports
format views.py according to pep8 (b$.... did you really use tabs and not spaces.... that's just wrong).
fix some terrible terrible things
format models according to pep8
remove unused imports from models