def until(keys: list): def select(value): for key in keys: if key in value: return value[key] return None return select def copy(source: dict, destination: dict): for k, v in source.items(): destination[k] = v