python How to turn a double dictionary into a tab delimited file : <pre><code>dict = {a : {aa:1, bb:2, cc:3}, b: {aa:1, bb:2, cc:3}}
</code></pre>

<p>I want to turn this dictionary into a tab delimited file like this:</p>

<pre><code>       aa  bb  cc
   a   1   2   3
   b   1   2   3
</code></pre>

<p>How should I do this. Thanks</p>
