Add Python 3 support

I haven't had a chance to test this in a live environment. However, setup.py and importing both succeed for Python 2 and 3.