Python Running Time Of Function