Fill tree with histograms in PyROOT

Never mind, I found the thread that answers this question.
[Filling TTree in Python with PyROOT