Janitorial clean up
- Inits of classes shouldn't probably be opening and reading files etc.
- Cleanup imports
- Reduce complexity of some functions
- Move some stuff around
- flake8: noqa looks like is wrong and just noqa should be used (I swear I used to have it this way and then it broke, but apparently I was disabling liniting entirely in file with flake8: noqa).