結果 : define class inside function python