Better enum handling in Python | Dark Hacker News