Addapt to PyROOT change
Merge pull request #6774 from wmtan/AdaptToPyRootChange

Adapt to PyROOT change