Look at this,and se if inherits from other classes make it clearer.
What you are doing is not the way to this.
>>> class Test:
def a(self):
self.var1 = 5000
print 'i am a'
>>> class Test1(Test):
def b(self):
print 'i am b'
print 'value from class Test method a is %d' % (self.var1)
>>> c = Test1()
>>> c.a()
i am a
>>> c.b()
i am b
value from class Test method a is 5000
>>>