generate .py code for hello world example

indents; todo: scoping