fix the error temporarily for python 3