add patch for python 2.7