Codebase Cleanup

Took some time to clean up the codebase. Found a few different styles of code being used so did a global pep8 formatting and cleanout. Took the number of violations from 6438 to 698. Also swept through and found a bunch of unused imports and took them out too. Was planning on doing some test coverage work but got frustrated by the way things were laid out. I'm hoping to use this new cleaner base to build off of but thought it best to do a pull request now so that people can look at and see the changes. I suspect this will cause some merge headaches with the other branches as well so please let me know if there is an easier way to merge this back into the project.