fix compile error in PythonGrammer