fixes #4: add python3 support