What is the best way to implement an equivalent of C's 'enum' type in Python? As a rank Python beginner I've used a dictionary, but presumably there is a better way. Thanks