'Finds a menu item by name and returns it.
:param name:
The menu item name.'

def find(self, name, menu=None):

    menu = (menu or self.menu)
    for i in menu:
        if (i.name == name):
            return i
        elif i.childs:
            ret_item = self.find(name, menu=i.childs)
            if ret_item:
                return ret_item
