python populate dataclass from dictionary