Improve development experience

tl;dr Use tox, use travis, flake8. Fix a weird test.

See commit messages for details. :)