LOOM-LSGEN: lsr_loomscript_open and lsr_loomscript_close instead of a pile of boilerplate