Upgrade to python 3 fixes #83