pep8 / pylint across the whole code

General code cleanup, see #27