Make tox check that code adheres to flake8

Closes #45.