Added Python 3 compatibility.
Merge pull request #23 from Frenzie/master

Added Python 3 compatibility.