updated python scripts for ntuple processing