convert project from implict python 2.x to python 3 mostly via 2to3
oops, fix urllib
misc whitespace and dict() fixes