Add Python3 support

Long awaited py3k support is here.