Adding py3k support

Most of these changes are pretty small.

I have this pointing at my fork of sure since it is py3 compatible, but we will obviously want to switch it before merging this in.