class A(object):
    def __init__(self):
        self.calcI(30)
        print ("i from A is", self.i)
    def calcI(self, i):
        self.i = 2 * i
 
class B(A):
    def __init__(self):
        super(B, self).__init__()  
    def calcI(self, i):
        self.i = 3 * i
 
b = B()
print b