結果 : can you define a class in a function python