fixed syntax error in python 2.6