Add python generator.
Merge branch 'python-code-generator'