Added tox config to test various Python versions

It required some changes to current way of running tests, hope it would be useful.