python statistic implement