DRYing up classes that duplicate methods
<p>I have various classes <code>Class1</code>, <code>Class2</code>, <code>Class3</code>, etc. all of which contain this exact piece of content inside:</p>

<pre><code>def showName(self):
   openWindow()
   print self.name
</code></pre>

<p>For example:</p>

<pre><code>class Class1:
    # SOME CODE

    def showName(self):
       openWindow()
       print self.name

    # SOME MORE CODE
</code></pre>

<p>What is the best way to have <code>showName</code> defined once in a separate file and import it back to <code>Class1</code>, <code>Class2</code>, <code>Class3</code>, etc.?</p>
