circumvented a bug in pyROOT's memory management