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