python 3 compatibility
Merge pull request #32 from dirk-thomas/master

python 3 compatibility