Fix syntax error on Python 2.4