title: function from a module not imported in python
body: <p>Good evenning guys,</p>
  
  <p>I ve got that weird behavior. Any help would be appreciated. </p>
  
  <p>Here is a function from a module called tankython, calling a function from a module called usual. However, it looks like Python refuses to recognize the function. Here is the code </p>
  
  <pre><code>#tankython.py
  
  from usual import * 
  from get_data import *
  from settings import *
  from actif_class import * 
  
  def tanking(list_spreads,settings):    
  ####    Tanking    ####  
      fenetre = settings.fenetre    
      list_spread_exit,list_spread_temp= [],[]
  
      ii= 0       
      for spread in list_spreads : 
          avc = ii * 100/float(len(list_spreads))
          print "Be patient. Tanking in progress..." , avc,"%"
          info = tankython (list_spreads,fenetre,ii) 
          list_spread_temp.append(info)
          ii = ii + 1
      list_spread_exit = check_list(list_spread_temp)
  
      return list_spread_exit
  
  #usual.py
  
  def check_list(list_entry):
      i = 0
      while i &lt; len(list_entry):
          if list_entry[i] == 0 :
              list_entry.pop(i)
          else : 
              i = i+ 1
      return list_entry
  </code></pre>
  
  <p>Here is the error message which I found really weird as I asked Py to import everything from usual.py:</p>
  
  <pre><code>File "tankython.py", line 77, in tanking
    list_spread_exit = check_list(list_spread_temp)
  
  NameError: global name 'check_list' is not defined
  </code></pre>
  
  <p>One last thing: eventually, if I put the function in tankython module, then Py accepts to goes through the entire process. However I really would like to know if there is anything I am doing wrong here. </p>
  
  <p>Cheers guys</p>