Bunch of little changes to reduce the number of PEP8 errors

Reduced the number of PEP8 errors in whole project
(including test classes) from ~500 to ~80.

The goal is zero PEP8-related style errors.