added python stats collection