Python3 Compatibility

I am interested in using this module, but the setup.py was broken.
I also added python3 compatibility.

I will follow up with a test automation configuation for using the travis-ci.org github hook to avoid regressions on setup, python2 and python3.