remove python 2.5 logic