Switch tests to pytest
Nest context managers for 2.6
Remove 3.4 from the test matrix

Until https://github.com/travis-ci/travis-ci/issues/1989 is done.
Use tox