fixes for python 3
Merge pull request #6 from humm/master

fixes for python3; this version should work :-).