def asdict(self): result = attr.asdict(self) del result['name'] # the name is the key in the places dict return result