First round of cleanup on models.py

note that quality_test is the ideal to shoot for.
files mostly linted
Merge branch 'feature/python-linting' into develop