[Python-ideas] Enum: determining if a value is valid