[Python-ideas] Right way to dataclass -> dict conversion.