The python code generated by antlr-4.9 has some syntax problems. Eg, for the following antlr grammar:
e returns [ObjExpr v] : a=e op=(\'*\'|\'/\') b=e {