def transform_sources(self, sources, with_string=False):
modules = {}<EOL>updater = partial(<EOL>self.replace_source, modules=modules, prefix='<STR_LIT>')<EOL>for filename in sources:<EOL><INDENT>updated = update_func_body(sources[filename], updater)<EOL>sources[filename] = EXTERN_AND_SEG + updated<EOL><DEDENT>logging.debug('<STR_LIT>', modules)<EOL>return sources, self.build_funcs(modules)<EOL>
Get the defintions of needed strings and functions
        after replacement.