title: Python: Call derived class method from another class
body: <p>I have searched all the related this stackoverflow question but its not satisfied my issue.</p>
  
  <p>BaseHandler.py</p>
  
  <pre class="lang-py prettyprint-override"><code>class BaseHandler(object):
  
      def __init__(self, rHandler, path, param):
              self._rHandler = rHandler
              self._server = self._rHandler.server
              self._path = path
              self._param = param
  
      def _getElement(self, name):
          return name + "append"
  </code></pre>
  
  <p>MyClass.py</p>
  
  <pre class="lang-py prettyprint-override"><code>class MyClass(BaseHandler.BaseHandler):
  
      def getA(self):
          print "Some info"
  
      def getB(self):
          el = self._getElement("T") #baseclass method
          print ebl
  </code></pre>
  
  <p>I wanted to call getB from the below class.</p>
  
  <p>RThread.py</p>
  
  <pre class="lang-py prettyprint-override"><code>import MyClass
  class RThread(object):
  
      def someMethod(self):
          clr = MyClass.MyClass
          clr.getB()
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <blockquote>
  <pre><code>TypeError: unbound method getB() must be called with MyClass instance as first argument (got nothing instead)
  </code></pre>
  </blockquote>
  
  <p>When I try the following:</p>
  
  <pre><code>clr = MyClass.MyClass()
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <blockquote>
    <p><strong>init</strong>() takes exactly 4 arguments (1 given)</p>
  </blockquote>
  
  <p>So kindly help me how to call this method from different class.</p>