anchor.diff:        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?
  
positive.code:     LoadedModules: TStringList;
      MainModule: PPyObject;
      Globals: PPyObject;
      procedure ImportCommand(const AObject, AModule: string);
      function ImportModuleCached(const AModule: string): PPyObject;
      function IsLoadedLocal(const S: string): boolean;
  
negative.code:   Result+= ')';
  end;
  
  procedure TAppPython.InitMainModule;
  begin
    with FEngine do
      if MainModule=nil then
      begin
        MainModule:= GetMainModule;
  