A more efficient and shorter way to make a defaultdict behave like a dict:

```
merged_data.default_factory = None
```

Then any lookups that don't exist will raise a ```KeyError``` as you'd expect.