Fix tests under Python 3
Merge pull request #30 from d0ugal/tox

Fix tests under Python 3