fix crash in python 2.4 due to missing import