Fixed for django 1.5+. PEP8. Improved .gitignore file etc