python: Add classes for values of API enums.