PEP8 fixes E231, E265. Nexus module

(picking a random example) Many of the E265 errors come from commented out code like this. Not sure how much sense it makes to adjust them, as they not comments at all.
Personally I think commented out code belongs in development branches, not the master branch. Maybe many of the ones that haven't been touched in a while and/or are debugging stuff should just be removed?