Py3k support and testing

I don't have write access BTW.  Tried to push this change.