upgrades for python 3