結果 : how to pass a class into a function python