PEP8 compliance

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