code: def recursively_update(d, d2):
    
    for k, v in d2.items():
      if k in d:
        if isinstance(v, dict):
          recursively_update(d[k], v)
          continue
      d[k] = v
docs: dict.update but which merges child dicts (dict2 takes precedence where there's conflict).