Added Python 3.3 compatibility.
Merge pull request #109 from timgraham/py3

Added Python 3.3 compatibility.