title: How to parse HTML string into HTML DOM elements in python?
body: <p>I've a string of HTML elements </p>
  
  <pre><code>HTMLstr = """
      &lt;div class='column span4 ui-sortable' id='column1'&gt;&lt;/div&gt;
      &lt;div class='column span4 ui-sortable' id='column2'&gt;
          &lt;div class='portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all' id='widget_basicLine'&gt;
          &lt;div class='portlet-header ui-widget-header ui-corner-all'&gt;&lt;span class='ui-icon ui-icon-minusthick'&gt;&lt;/span&gt;Line Chart &lt;/div&gt;
          &lt;div class='portlet-content' id=basicLine style='height:270px; margin: 0 auto;'&gt;&lt;/div&gt;          
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class='column span4 ui-sortable' id='column3'&gt;&lt;/div&gt; """
  </code></pre>
  
  <p>I want to convert the above HTML string into respective HTML DOM elements in python?</p>
  
  <p>I can do it in jQuery/AJAX function via <code>$(this).html(HTMLstr);</code> but how do I parse it in python?</p>