Deeply nested merge of python dictionaries