Triple quoted str & format() to make script header

You could use this approach to build the entire script with the syntax like script_text(name, pyfile, pyuifile) and then use `return '''<full script text>'''.format(name=name, pyfile=pyfile, pyuifile=pyuifile)`