fist version of generate_constobjs script