title: Use enum instances in another class in Python3
body: <p>I have an enum class called <em>UsedPlatforms</em>:</p>
  
  <pre><code>from enum import Enum
  
  class UsedPlatforms(Enum):
      PROD = 1,
      TEST = 2
  </code></pre>
  
  <p>I want to use this enum in another python class like:</p>
  
  <pre><code>import UsedPlatforms
  
  def foo(platform):
      if platform == UsedPlatforms.PROD:
          print("Did it!")
  
  foo(platform=UsedPlatforms.PROD)
  </code></pre>
  
  <p>But when I run second script, I get an <strong>error</strong> like:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/user/Projects/EnumTest/test.py", line 9, in &lt;module&gt;
      foo(platform=UsedPlatforms.PROD)
  AttributeError: module 'UsedPlatforms' has no attribute 'PROD'
  
  Process finished with exit code 1
  </code></pre>
  
  <p>I think I couldn't import my enum class properly or I didn't know how to use enums between classes, or smth. So, what should I do to use my enum class in another classes?</p>
  
  <p>Thanks!</p>