finished conforming codebase to PEP8 and google code standards

Cleaned up indents, white-space, long lines and unused imports.

All tests passing.

Started this because of other contributions I am making. Figured I might as well clean up as part of familiarizing myself with the code-base. Hope nobody minds.