3901: Python 2.4 compatibility