Fix Python 2.5 syntax issue