Add py25 compatibility