結果 : name is not defined in function python