Enforce pep-8

We previously decided to adhere to pep8, but did not reformat all code
to comply, nor did we set up any tests to enforce this.

This reformats code to adhere to pep8 and sets up enforcement through
Tracis-CI.