code: def get_commands_from_xml(self, mission, role):
          
          handlers = mission.findall(CommandParser.ns + "AgentSection" + "/" + CommandParser.ns + "AgentHandlers")
          if len(handlers) <= role:
              raise CommandHandlerException("Not enough agents sections in XML")
          commands = []
          self._command_hander(handlers[role], False, commands)
          return commands
docs: Get commands from etree