Added patch for Python 2.5