def asdict(data_class) -> Dict:
    'Type coerce items for easy serialization'
    data = asdict_(data_class)
    out = {}
    for (k, v) in data.items():
        if isinstance(v, tuple):
            out[k] = list(v)
        elif isinstance(v, np.ndarray):
            out[k] = v.tolist()
        else:
            out[k] = v
    return out
Type coerce items for easy serialization
def asdict(data_class) -> Dict:
    
    data = asdict_(data_class)
    out = {}
    for (k, v) in data.items():
        if isinstance(v, tuple):
            out[k] = list(v)
        elif isinstance(v, np.ndarray):
            out[k] = v.tolist()
        else:
            out[k] = v
    return out