Add some initial tests
Python 3 compatibility

Fixes #31
Add tox for easy testing across Python platforms