in util.py [0:0]
def state_from_json(s): j = json.loads(s) if "version" not in j: return {} return j["states"]