def dict_to_data(d: dict) -> dict:
    'Recursively calls to_data on dict'
    return {key: to_data(d[key]) for key in d}
Recursively calls to_data on dict
def dict_to_data(d: dict) -> dict:
    
    return {key: to_data(d[key]) for key in d}