Misc cleanups, PEP8, conding conventions, spaces, unused imports, False/True comparisons