@classmethod<EOL><INDENT>def _atexit_callback(cls):<DEDENT>
updated_scripts = {}<EOL>for baseline in cls._baselines_to_update:<EOL><INDENT>if baseline.z__path.endswith('<STR_LIT>'):<EOL><INDENT>continue<EOL><DEDENT>try:<EOL><INDENT>script = updated_scripts[baseline.z__path]<EOL><DEDENT>except KeyError:<EOL><INDENT>script = Script(baseline.z__path)<EOL>updated_scripts[baseline.z__path] = script<EOL><DEDENT>script.add_update(baseline.z__linenum, baseline.z__update)<EOL><DEDENT>for key in sorted(updated_scripts):<EOL><INDENT>script = updated_scripts[key]<EOL>script.update()<EOL><DEDENT>return updated_scripts<EOL>
Create Python script copies with updated baselines.

        For any baseline that had a miscompare, make a copy of the
        source file which contained the baseline and update the
        baseline with the new string value.

        :returns:
            record of every Python file update (key=path,
            value=script instance)
        :rtype: dict