These 4 if statements might be better off as a loop:

```python
for key in ['locales', 'topics', 'docs', 'indexes']:
    merged_bundle[key] = merged_bundle[key].values()
```

You might also use something similar above.