title: Convert string into dictionary with python
body: <p>I know that this question sound a duplicate, but it's not, at least looked for a while and I couldn't fine nothing for my specific problem.</p>
  
  <p>I have the following string:</p>
  
  <pre><code>"{first : {name : 'test', value : 100}, second : {name : 'test2', value : 50}}"
  </code></pre>
  
  <p>And I want to convert that string to a dictionary something like this:</p>
  
  <pre><code>{'first': {'name': 'test', 'value' : 100}, 'second': {'name': 'test2', 'value' : 50}}
  </code></pre>
  
  <p>Any ideas? I'm working with Python 2.5</p>
  
  <p>Thanks</p>