Use py.test's tmpdir feature
Update dependencies

Also use dev-requirements.txt in tox.ini.