def _configure_frozen_scoop(kwargs):
def _delete_old_scoop_rev_data(old_scoop_rev):<EOL><INDENT>if old_scoop_rev is not None:<EOL><INDENT>try:<EOL><INDENT>elements = shared.elements<EOL>for key in elements:<EOL><INDENT>var_dict = elements[key]<EOL>if old_scoop_rev in var_dict:<EOL><INDENT>del var_dict[old_scoop_rev]<EOL><DEDENT><DEDENT>logging.getLogger('<STR_LIT>').debug('<STR_LIT>'<EOL>'<STR_LIT>' % old_scoop_rev)<EOL><DEDENT>except AttributeError:<EOL><INDENT>logging.getLogger('<STR_LIT>').error('<STR_LIT>'<EOL>'<STR_LIT>' % old_scoop_rev)<EOL><DEDENT><DEDENT><DEDENT>scoop_rev = kwargs.pop('<STR_LIT>')<EOL>try:<EOL><INDENT>old_scoop_rev = _frozen_scoop_single_run.kwargs['<STR_LIT>']<EOL>configured = old_scoop_rev == scoop_rev<EOL><DEDENT>except (AttributeError, KeyError):<EOL><INDENT>old_scoop_rev = None<EOL>configured = False<EOL><DEDENT>if not configured:<EOL><INDENT>_frozen_scoop_single_run.kwargs = shared.getConst(scoop_rev, timeout=<NUM_LIT>)<EOL>frozen_kwargs = _frozen_scoop_single_run.kwargs<EOL>frozen_kwargs['<STR_LIT>'] = scoop_rev<EOL>frozen_kwargs['<STR_LIT>'].v_full_copy = frozen_kwargs['<STR_LIT>']<EOL>if not scoop.IS_ORIGIN:<EOL><INDENT>_configure_niceness(frozen_kwargs)<EOL>_configure_logging(frozen_kwargs, extract=False)<EOL><DEDENT>_delete_old_scoop_rev_data(old_scoop_rev)<EOL>logging.getLogger('<STR_LIT>').info('<STR_LIT>' % str(scoop.worker))<EOL><DEDENT>
Wrapper function that configures a frozen SCOOP set up.

    Deletes of data if necessary.