Py2.4 compile fix