Minor: could use a dict comprehension here instead: `{k: v for k,v in ...}`.