Py3k

Support modern Python!

I'm on vacation without much internet access. If this fails the Travis tests I'll take a look at it later.