title: alternative for python Enum with duplicate values
body: <p>I like Enum a lot and I would like to do the following:</p>
  
  <pre><code>class Color(Enum):
      green = 0
      red = 1
      blue = 1
  
  for color in Color:
      print(color.name)
      print(color.value)
  </code></pre>
  
  <p>As you can see, there are duplicate values in Color class. What class alternative can I use in this case that supports iterable, name, value?</p>