title: Error defining Enum in class: TypeError: 'module' object is not callable
body: <p>I have a Python package containing a module:</p>
  
  <blockquote>
    <p>myPackage</p>
    
    <p>|----> myModule</p>
  </blockquote>
  
  <p>where I want to define an enum as a static property of the module.  <strong>I'm using the enum34 module for Python 2.7 in Houdini</strong></p>
  
  <pre><code>#myModule.py
  from enum import Enum
  class DebugStates(Enum):
      release = 1
      debug = 2
  </code></pre>
  
  <p>In another Python file i then try to import myModule:</p>
  
  <pre><code>#OtherPython.py
  from myPackage import myModule
  </code></pre>
  
  <p>which is executed when Houdini starts up.  This executes without errors, but when I try and pull up a Python console I get this error and Houdini crashes:</p>
  
  <pre><code>"Traceback (most recent call last):
    File \"&lt;stdin&gt;\", line 1, in &lt;module&gt;
  TypeError: 'module' object is not callable
  "
  </code></pre>