title: converting input string to dictionary in python
body: <p>I have an input string with nested keys and values. I need to convert it into a dictionary that can then be read for further processing. </p>
  
  <p>The input string is as given below:</p>
  
  <pre><code>{'None': 'No', 'Some': 'Yes', 'Full': 'Reservation', {'Yes': 'No', 'No': 'WaitEstimate', {'0-10': 'No', '30-60': 'Type', {'Thai': 'No', 'French': 'No', 'Italian': 'Yes', 'Burger': 'Yes'}, '10-30': 'Yes', '&gt;60': 'No'}}}
  </code></pre>
  
  <p>It needs to convert to:</p>
  
  <pre><code>None: No
  Some: Yes
  Full: Reservation {
      Yes: No
      No : WaitEstimate {
                0-10: No ........ and so on
  </code></pre>