Partially making src directory `pep8` compatible

As part of http://24pullrequests.com/
Make main.py partially `pep8` compliant

We did not get rid of the 'line too long' errors, but all the other
errors and warnings of `pep8` are now fixed.

As part of http://24pullrequests.com/