title: python use the output of a class inside another class
body: <p>I have the structure of a code described below which is made of two classes. What I want to do is to use the returned value from  classname1 and all its methods inside the classname2. 
  I would appreciate your help.</p>
  
  <pre><code>class   classname1(someObject):
  
        def __init__(self, someInput1):
             self.someInput = someInput
  
        def someMethod (self):
            'code '
            return something
  
  class  classname2(someObject):
  
         def init(self, someInput2)
              self.someInput2 = someInput2
  
         def AnotherMethod(self):
  
         use the returned value from the first class  
  </code></pre>