def __updatedict__(dm, ds):
    """Update content from ds in dm, if no exists then create it."""
    for key in ds.keys():
        if isinstance(ds[key], dict):
            if key in dm:
                ds[key].update(dm[key])
        elif isinstance(ds[key], list):
            if key in dm:
                ds[key] = set(ds[key] + dm[key])
        elif isinstance(ds[key], (int, float, str, bytes)):
            if key in dm:
                ds[key] = dm[key]
    dm.update(ds)
    return dm
