def extract(dict_in, dict_out):
    for key, value in dict_in.items():
        if isinstance(value, dict):
            extract(value, dict_out)
how to get all keys&values in nested dict of list-of-dicts and dicts?