But maybe the answer is the same as to this similar question, and you just have to call ROOT.TH1.AddDirectory(0)
:
>>> f = ROOT.TFile("bla.root")
>>> ROOT.TH1.AddDirectory(0)
>>> d = {}
>>> h2 = f.Get("h2")
>>> d['h2'] = h2.Clone()
>>> d
{'h2': <ROOT.TH1D object ("h2") at 0x55ca3b57dda0>}
>>> f.Close()
>>> d
{'h2': <ROOT.TH1D object ("h2") at 0x55ca3b57dda0>}