syntax error corrected to avoid errors with python v2.7.8