Python3 support

Re #38. The tests pass, at least as far as the tests in master pass (I'm having some issues with pypy and the py*request envs).