Refactoring
- Refactoring and PEP8 compatiblity in models.py