'returns the subbranch of a command'

def get_subbranch(self, data):

    data_split = data.split()
    kids = self.children
    for word in data_split:
        kid = self.get_child(word, kids)
        kids = kid.children
    return self._get_subbranch_help(kids, [])
