added statistics in python