Fix for building with python3
Merge pull request #57 from farwayer/python3_fix

Fix for building with python3