Missing colon causing syntax error