support python 2.5