Use pytest for testing.
Add support for Python 2.7.
Use tox.
Add travis configuration.