NameError: global name 'reverse' is not defined
<p>New to python.... really confused with this weird error....
I don't think I'm doing anything wrong, am I?</p>

<p>main.py</p>

<pre><code>from methods import Reverse

def main ():

    b = [1,2,3,4,5,6,6,7,8,8,9,1,212,312,31,23,123455435,56,56,123]
    a = "llaa"

    thing = Reverse()
    print thing.reverse(a)


main()
</code></pre>

<p>methods.py</p>

<pre><code>class Reverse():

  def __init__(self):
    print "initialized reverse"

  def reverse(self,var):
    if var == "":
      return var
    else: 
      print var[-1] + reverse(var[:-1])
</code></pre>

<p>I'm trying to do a recursive call with reverse....
Please kindly help. Thanks!</p>
