結果 : python choose function based on string