more ypthon 3 fixes