I am trying to update values in a nested dictionary, without over-writting previous entries when the key already exists. For example, I have a dictionary:
You could treat the nested dict as immutable:
myDict["myKey"] = dict(myDict["myKey"], **{ "nestedDictKey2" : anotherValue })