Create a flattened representation of an class based on its MRO
<p>How would I create a flattened representation of a class that is composed of multiple base classes/mixins.  Is there a library for doing such a thing? For example:</p>

<pre class="lang-py prettyprint-override"><code>class Foo(object):
    def a(self):
        return 

class Bar(object):
    def b(self):
        return

class Baz(Foo, Bar):
    pass
</code></pre>

<p>I want to be able to create a text representation of the flattened class that would look like this:</p>

<pre class="lang-py prettyprint-override"><code>class Baz(object):
    def a(self):
        return

    def b(self):
        return
</code></pre>

<p>The idea would be to create a text editor plugin (ST2 in my case) to allow the user to right-click on a class name and select an option to have a tab open with the flattened class displayed for reference.</p>

<p>Of course the tool would need to be smart enough to treat super calls as basically includes.</p>
