convert python3 to python2