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

python 3 compatibility