Fix for python 3 support
Merge pull request #24 from tlunter/python3_support

Fix for python 3 support