Robust enumerated type support in Python.