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

...ill havent gotten the whole thing to run without erroring out somewhere.