Patched for Python 3
Merge pull request #66 from haard/master

Patched for Python 3 - tentative