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