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

python 3 compatibility