Python3 porting effort

It runs as a single codebase with the help of six.