@classmethod
def from_msgpack(cls, encoded):
    obj = cls()
    obj.__dict__ = {k.decode('utf-8'): v for (k, v) in encoded.items()}
    return obj
@classmethod
def from_msgpack(cls, encoded):
    obj = cls()
    obj.__dict__ = {k.decode('utf-8'): v for (k, v) in encoded.items()}
    return obj