fix tests for Python 3
Merge pull request #3 from janwijbrand/master

fix tests for Python 3