If you're looking for a simple sum type without associated value, the standard library's enum works quite well: https://docs.python.org/3/library/enum.html
If you're using mypy, there's also the Union type https://mypy.readthedocs.io/en/latest/kinds_of_types.html#un...
https://github.com/radix/sumtypes/
(Same year - 2015 - as the original post ;)