結果 : python check if string is valid enum value