def list_to_dict(_list):
    """Converts a list of dicts into a dict of dicts using the 'Name' key
    from the dicts in the list as the key for the dict in the dict of dicts"""

    _dict = {}
    for item in _list:
        if type(item) == dict:
            _dict[item["Name"]] = item
        else:
            _dict[item.name] = item
    return _dict