Python Check String In Enumeration Type Can Also Be Used As Indexes In Arrays