Static analysis and pep8 completed for models