PythonGenerator.apply -> generatePython