fix python 2.4