Fix syntax error with old version of Python