def remove_from_menu():
    ' Remove modules from menu if they are not in modules list from argument '
    copy_of_menu = []
    for module in modules.menu_ptr:
        if (module['name'].lower() in arg_modules):
            copy_of_menu.append(module)
    modules.menu_ptr = copy_of_menu
Remove modules from menu if they are not in modules list from argument
def remove_from_menu():
    '  '
    copy_of_menu = []
    for module in modules.menu_ptr:
        if (module['name'].lower() in arg_modules):
            copy_of_menu.append(module)
    modules.menu_ptr = copy_of_menu