Transform Dictionary-Like Input to a Dictionary
<p>How do I transform a dictionary input to a real dictionary that I can process?</p>

<p>When I execute an external command, this is what I get.</p>

<pre><code>{'aaa': {'test_a': 0.11666666666667,
         'test_b': 1,
         'total_c': 0.11666666666667},
 'bbb': {'test_a': 32.883333333332999,
         'test_b': 1,
         'total_c': 0.11666666666667},
 'ccc': {'test_a': 11, 'test_b': 31, 'test'_c': 33}}
</code></pre>

<p>So, as you can see, the above is already a dictionary-format already. I was just thinking of doing something like.</p>

<pre><code> #!/usr/bin/python

 import command
 result = commands.getoutput('&lt;execute_external_command')
</code></pre>

<p>So that 'result' becomes a dictionary and I can just process it like any dictionary.</p>
