update python2 to 3