Python 3 Support

Hi,

I need this library to work on python 3 and I converted it using 2to3 tool and works fine. Let me know if you want me to change anything else or test.