Added tox configuration for testing in various Python versions
Make tests pass in Python 2.7 and Python 3.x