fix syntax error on python 2.4