title: Creating a HTML table with Python with multiple columns for a specific row
body: <p>I wrote this code:</p>
  
  <pre><code>tr = ""
  for author, projects in data.iteritems():
      tr + = "&lt;tr&gt;&lt;td&gt;{}&lt;/td&gt;".format(author)
      for project, branches in projects.iteritems():
          tr += "&lt;td&gt;{}&lt;/td&gt;".format(project)
          for branch in branches:
              tr += "&lt;td&gt;{}&lt;/td&gt;".format(branch)
      tr += &lt;/td&gt;&lt;/tr&gt;
  end = "&lt;/table&gt;"
  </code></pre>
  
  <p>I have this dataset</p>
  
  <pre><code>{
  'user_one': {'project_a': ['branch_1', 'branch_2'],
            'project_b': ['branch_1']},
  'user_two': {'project_x': ['branch_x1', 'branch_b'] }
  }
  </code></pre>
  
  <p>I want to print table like below:</p>
  
  <pre><code>+-------------------------------------------+
  |    User    |    Project    |    Branch    |
  +------------+---------------+--------------+
  |  user_one  |   project_a   |   branch_1   |
  +------------+---------------+--------------+
  |            |               |   branch_2   |
  +------------+---------------+--------------+
  |            |   project_b   |   branch_1   |
  +------------+---------------+--------------+
  |  user_two  |  project_x    |   branch_x1  |
  +------------+---------------+--------------+
  |            |               |   branch_b   |
  +------------+---------------+--------------+
  </code></pre>
  
  <p>if its single project it works fine but when it comes multiple projects, it doesn't. I can get the result using PrettyTable but I since I want project_a, _b , _x etc to  be hyperlinks. I cannot achieve it in while using PrettyTable, so I started writing my own html generator based on data.</p>