Dict comprehension over multiple dicts with missing keys I have a piece of legacy python2 code that looks like the following