[lo] move helpers.py from gc_lang to core