FYI: You can have multiple yields in a generator, so this is probably prettier if you just yield the two dicts directly.