fix the error temporarily for python 3

fix the error temporarily for python 3