PEP8 compliance

Continue the work done by @SamuelMarks. 

TODO:
- [x] Include pep8 checker in the Makefile

Checklist:
- [x] Create/update docstrings
- [x] Make tests for new code
- [x] All tests pass
- [x] Can be merged
- [x] Changelog entry