title: Python3 - Convert a string to dict
body: <p>I have this string which I wish to convert to a dict:</p>
  
  <pre><code>class_="template_title" height="50" valign="bottom" width="535"
  </code></pre>
  
  <p>to basically change it to something like: </p>
  
  <pre><code>dict(class_='template_title', height='50', valign='bottom', width='535')
  </code></pre>
  
  <p>Nothing more complicated but I believe there is multiple steps in this problem. Would be nice if you could explain the solution or link to some documentation  :)</p>