fix test + fix for python3
Merge pull request #22 from jsalvatier/py3

Python 3 fix