start using pytest and tox

I asked for your opinion on py.test in some other issue, it's probably easier to see the benefits with some real code. 

so, here it is.