change from python2 to python3