[IMP] analyze: prepare_gpl_file: only do one write