Flake8 compatibility of all code

Closes #75