Compatible with python 3.3
Merge pull request #39 from DemonVex/master

Compatible with python 3.3