Upgrade to python 3