Correct syntax errors of PythonNotes