title: NameError: global name 'x' is not defined
body: <p>i'm getting</p>
  
  <pre><code>NameError: global name 'Ontologia' is not defined
  </code></pre>
  
  <p>The class Ontologia is defined on ontologia.py and I also used</p>
  
  <pre><code>import ontologia
  </code></pre>
  
  <p>This is the line that i'm getting the problem</p>
  
  <pre><code>onto = Ontologia()
  </code></pre>
  
  <p>The full code of ontologia.py is here:</p>
  
  <pre><code>class Ontologia(object):
  
  def __init__(self, name, key, left=None, right=None):
      self.name = name
      self.key = key
      self.left = left
      self.right = right
  </code></pre>