Style!

Fixed a lot of style errors. This is only small changes, many parts of the project could use a refactor.
From pylint:

    Your code has been rated at 4.53/10