Porting to Python 2.4