anchor.diff:      LoadedModules: TStringList;
       MainModule: PPyObject;
       Globals: PPyObject;
  +    procedure InitMainModule;
       procedure ImportCommand(const AObject, AModule: string);
       function ImportModuleCached(const AModule: string): PPyObject;
       function IsLoadedLocal(const S: string): boolean;
  
positive.code:   Result+= ')';
  end;
  
  function TAppPython.Eval(const Command: string; UseFileMode: boolean=false): PPyObject;
  var
    Mode: integer;
  begin
    Result := nil;
    if not FInited then exit;
  
    if UseFileMode then
      Mode:= file_input
    else
      Mode:= eval_input;
  
    with FEngine do
    begin
      Traceback.Clear;
      CheckError(False);
  
      if MainModule=nil then
      begin
        MainModule:= GetMainModule;
  
negative.code:       if Globals=nil then
          Globals:= PyModule_GetDict(MainModule);
      end;
  end;
  
  function TAppPython.Eval(const Command: string; UseFileMode: boolean=false): PPyObject;
  var
    Mode: integer;
  begin
    Result := nil;
    if not FInited then exit;
  
    if UseFileMode then
      Mode:= file_input
    else
      Mode:= eval_input;
  
    with FEngine do
    begin
      Traceback.Clear;
      CheckError(False);
  
      InitMainModule;
  
      try
        //PythonEngine used PChar(CleanString(Command)) - is it needed?
  