Check If String Is Enum Value Python