title: Python Convert string to dict
body: <p>I have a string : </p>
  
  <pre><code>'{tomatoes : 5 , livestock :{cow : 5 , sheep :2 }}' 
  </code></pre>
  
  <p>and would like to convert it to </p>
  
  <pre><code>{
    "tomatoes" : "5" , 
    "livestock" :"{"cow" : "5" , "sheep" :"2" }"
  }
  </code></pre>
  
  <p>Any ideas ?</p>