changes to pyroot analysis script