PEP8 fix: indent spaces from 2 to 4, breaklines between import, classes, function, at top-level and intermediate levels, and other minor code style fix.