python 3 compatibility
Merge pull request #50 from richo/features/py3-compat

python 3 compatibility