Fix issue in Python 2.4