title: From python dictionary to html list
body: <p>everyone
  My question is pretty similar to this one: <a href="https://stackoverflow.com/questions/3930713/python-serialize-a-dictionary-into-a-simple-html-output">python: serialize a dictionary into a simple html output</a></p>
  
  <p>I would like convert my python dictionary, that contain a tree, in a HTML list that use the </p>
  
  <pre><code>&lt;ul&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt; Tag
  </code></pre>
  
  <p>I would like add one checkbox for each elements with the id= name of the elements + name of the dad</p>
  
  <p>this is an example of my python dictionary:</p>
  
  <pre><code>{'Animalia': {'Chordata': {'Mammalia': {'Carnivora': {'Canidae': {'Canis': {'coyote': {},
                                                                          'dog': {}}},
                                                    'Felidae': {'Felis': {'cat': {}},
                                                                'Panthera': {'lion': {}}}}}}},
  
  'Plantae': {'Solanales': {'Convolvulaceae': {'Ipomoea': {'sweet potato': {}}},
                         'Solanaceae': {'Solanum': {'potato': {},
                                                    'tomato': {}}}}}}
  </code></pre>
  
  <p>And I would like obtain:</p>
  
  <pre><code>&lt;ul&gt;&lt;li&gt;&lt;input type=checkbox id=Animalia-root&gt;Animalia&lt;/li&gt;
  &lt;ul&gt;&lt;li&gt;&lt;input type=checkbox id=Chordata-Animalia&gt;Chordata&lt;/li&gt;
  &lt;ul&gt;&lt;li&gt;&lt;input type=checkbox id=Chordata-convolvulacee&gt;convolvulacee 
  &lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;
  </code></pre>
  
  <p>There is an easy way, to do this in python? Thank you </p>