refactor BashSourceGenerator
regenerator test/codegen
remove unused field from PythonSourceGenerator