pep8

I know this is a really big PR, but I think sticking to existing standards is a really good idea.

http://www.python.org/dev/peps/pep-0008/

I ran the pep8 utility over the codebase and fixed everything that was not formatted to the standards.

I also moved around the utilities and fixed some broken imports.