Add Python 3 support.
Merge pull request #43 from berkerpeksag/py3-support

Add Python 3 support.