Python 2.4.4 compatibility