code: def create_python_script_action(parent, text, icon, package, module, args=[]):
      
      if is_text_string(icon):
          icon = get_icon(icon)
      if programs.python_script_exists(package, module):
          return create_action(parent, text, icon=icon,
                               triggered=lambda:
                               programs.run_python_script(package, module, args))
docs: Create action to run a GUI based Python script