Might consider replacing these literal dicts with instances of some named class or of  `namedtuple`.