Set up tox

Add a tox.ini to at least verify packaging and installation work.

Fix one issue found by flake8.