code: def event_handler_event_handler_list_action_action_choice_python_script_python_script(self, **kwargs):
          
          config = ET.Element("config")
          event_handler = ET.SubElement(config, "event-handler", xmlns="urn:brocade.com:mgmt:brocade-event-handler")
          event_handler_list = ET.SubElement(event_handler, "event-handler-list")
          name_key = ET.SubElement(event_handler_list, "name")
          name_key.text = kwargs.pop('name')
          action = ET.SubElement(event_handler_list, "action")
          action_choice = ET.SubElement(action, "action-choice")
          python_script = ET.SubElement(action_choice, "python-script")
          python_script = ET.SubElement(python_script, "python-script")
          python_script.text = kwargs.pop('python_script')
  
          callback = kwargs.pop('callback', self._callback)
          return callback(config)
docs: Auto Generated Code