Allow setting enumeration values from python based on string