Lots of pep8 fixes, lots of code tweaks and fixes, whitespace, etc. I still havent gotten the whole thing to run without erroring out somewhere.
Merge pull request #247 from zgohr/pep8

Lots of pep8 fixes, lots of code tweaks and fixes, whitespace, etc. I st...