結果 : cache results of function python