anchor.diff:      LoadedLocals: TStringList;
       LoadedModules: TStringList;
       ModuleMain: PPyObject;
  +    ModuleCud: PPyObject;
       GlobalsMain: PPyObject;
  +    GlobalsCud: PPyObject;
       procedure InitModuleMain;
  +    procedure InitModuleCud;
       procedure ImportCommand(const AObject, AModule: string);
       function ImportModuleCached(const AModule: string): PPyObject;
       function IsLoadedLocal(const S: string): boolean;
  
positive.code:     begin
        ModuleMain:= GetMainModule;
        if ModuleMain=nil then
          raise EPythonError.Create('Python: can''t create __main__');
        //if _Locals=nil then
        //  _Locals:= PyModule_GetDict(ModuleMain);
        if GlobalsMain=nil then
          GlobalsMain:= PyModule_GetDict(ModuleMain);
      end;
  end;
  
  
negative.code: //
    procedure InitParamsObj;
    var
      ObjEditor, ObjEditorArgs: PPyObject;
      i: integer;
    begin
      SetLength(ParamsObj, Length(AParams)+1);
  
      //first param must be None or Editor(AEd_handle)
      with FEngine do
        if AEd=nil then
          ParamsObj[0]:= ReturnNone
        else
        begin
          InitModuleCud;
          ObjEditor:= PyDict_GetItemString(GlobalsCud, 'Editor');
          if ObjEditor=nil then
            raise Exception.Create('Python: cannot find cudatext.Editor');
          ObjEditorArgs:= PyTuple_New(1);
          PyTuple_SetItem(ObjEditorArgs, 0, PyLong_FromLongLong(PtrInt(AEd)));
          ParamsObj[0]:= PyObject_CallObject(ObjEditor, ObjEditorArgs);
  