Lots of PEP8 fixes on syntax

This should include only syntax changes (like white space management and
similar). The program still runs and everything should be good. I did
not split the commits, because it is basically the same type of changes
over the whole codebase.