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