Use tox.
Fix flake8.