fix syntax error in python 2.4