Statistic the stock trade with python!