PyROOT code for analyzing collision data