def all(stack): return db.get(stack)
def dump(stack): vars = db.get(stack) return print(json.dumps(vars, indent=2))
def get(stack, name): vars = db.get(stack) return vars.get(name)
def rm(stack, name): vars = db.get(stack) vars.pop(name) db.set(stack, vars)
def set(stack, name, value): vars = db.get(stack) vars[name] = value db.set(stack, vars)