anchor.diff:  
   procedure PyClearLoadedModuleLists;
   begin
  -  _LoadedModules.Clear;
  +  _LoadedCudatext:= false;
     _LoadedLocals.Clear;
   end;
   
   initialization
   
  -  _LoadedModules:= TStringList.Create;
     _LoadedLocals:= TStringList.Create;
   
   finalization
   
     FreeAndNil(_LoadedLocals);
  -  FreeAndNil(_LoadedModules);
   
   end.
   
  
positive.code: implementation
  
  var
    _LoadedModules: TStringList = nil;
    _LoadedLocals: TStringList = nil;
  
  const
    _LoadedPrefix = 'xx';
    //must be the same as in file py/cudatext_reset_plugins.py
  
  function IsPyLoadedModule(const S: string): boolean; inline;
  begin
    Result:= _LoadedModules.IndexOf(S)>=0;
  end;
  
  function IsPyLoadedLocal(const S: string): boolean; inline;
  begin
  
negative.code:       MsgLogConsole('Init: '+AModule);
      try
        Py_RunModule_ImportCommand(SObj, AModule);
        _LoadedLocals.Add(SObj);
      except
      end;
  