Python 2.4 syntax fixed.