import umsgpack binary = umsgpack.packb({"compact": True, "schema": [0, False]}) obj = umsgpack.unpackb(binary) print(obj) print(obj['schema'])