Fix (most) PEP8 coding style violations

Generally only whitespace changes.
`pep8 main.py --ignore=E128,E501` returns no output anymore.

TODO: Fix lines which are too long
TODO: Fix indentation of continuation lines

As part of http://24pullrequests.com