from .handler import _post def LEN(value): return _post("len", {"value": value}).get("length") def LIST_INDEX(lst, index): return _post("list_index", {"list": lst, "index": index}) def LIST_PUSH(lst, item): return _post("list_push", {"list": lst, "item": item}) def LIST_POP(lst): return _post("list_pop", {"list": lst})