anchor.diff:  implementation
   
   var
  -  _LoadedModules: TStringList = nil;
  +  _LoadedCudatext: boolean = false;
     _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
  
positive.code: 
  procedure PyClearLoadedModuleLists;
  begin
    _LoadedModules.Clear;
    _LoadedLocals.Clear;
  end;
  
  initialization
  
    _LoadedModules:= TStringList.Create;
    _LoadedLocals:= TStringList.Create;
  
  finalization
  
    FreeAndNil(_LoadedLocals);
    FreeAndNil(_LoadedModules);
  
  end.
  
  
negative.code:         MsgLogConsole('Init: '+AModule);
        try
          Py_RunModule_ImportCommand(SObj, AModule);
          _LoadedLocals.Add(SObj);
        except
        end;
  