How can I have a single dictionary out of a dictionary within a dictionary with some different and similar keys : I have a dictionary having two key values, and each key refers to a value that is a dictionary itself. Now my concern is to extract the key values of the values regardless of their first key. And these two values have keys that are same as well as different. 


I need to get a single dictionary where the different keys remains same, while the keys that are same in both dictionary , so there value updates i.e they add up.

    with open('report.json') as json_file:
        data = json.load(json_file)
        (data['behavior']['apistats'])


{'2740': {'NtDuplicateObject': 2, 'NtOpenSection': 1, 'GetSystemWindowsDirectoryW': 23, 'NtQueryValueKey': 32,'NtClose': 427,'NtOpenMutant': 2, 'RegCloseKey': 8, }, '3908': {'RegCreateKeyExW': 2, 'GetNativeSystemInfo': 1, 'NtOpenSection': 1, 'CoUninitialize': 6, 'RegCloseKey': 27, 'GetSystemInfo': 1, 'CreateToolhelp32Snapshot': 180, 'UnhookWindowsHookEx': 2, 'GetSystemWindowsDirectoryW': 6, 'NtQueryValueKey': 6,'NtClose': 427}}
The output I get but I need a single dictionary where the same apis value adds up as a new value and the keys dont repeat, regardless of parent keys '2740' and '3908'.