Feature/add environment

pytest has built-in ``tmpdir`` fixture, a lot more fancy, see http://pytest.org/latest/tmpdir.html