fix  py2.4 compat issue