Py2.4

Make it work on py2.4