def get_items_without_dict(obj):

    obj_list = list(obj.items())
    for item in obj_list:
        if isinstance(list(item)[1], dict):
            obj_list.remove(item)
    return obj_list
Get items in obj but omit any items containing a dict.
dataset/ETHPy150Open openstack/rack/rack/api/xmlutil.py/get_items_without_dict