port to python3
Merge pull request #3 from sthiele/master

port to python3