title: i want get data in form of dictionary from github but facing issue "dictionary update sequence element #0 has length 1; 2 is required"
body: <p>iam working on getting no of commits from a repository in form of dictionary while i run the code iam getting error
  &quot;dictionary update sequence element #0 has length 1; 2 is required&quot;</p>
  <pre><code>def branches_of_repo(repo, owner, api):
      branches = []
      next = True
      i = 1
      while next == True:
          url = api + '/repos/{}/{}/branches?page={}&amp;per_page=100'.format(owner, repo, i)
          branch_pg = gh_session.get(url = url)
          branch_pg_list = [dict(item, **{'repo_name':'{}'.format(repo)}) for item in branch_pg.json()]    
          branch_pg_list = [dict(item, **{'owner':'{}'.format(owner)}) for item in branch_pg_list]
          branches = branches + branch_pg_list
          if 'Link' in branch_pg.headers:
              if 'rel=&quot;next&quot;' not in branch_pg.headers['Link']:
                  next = False
          i = i + 1
      return branches
  
  branches = json_normalize(branches_of_repo('taniarascia', 'takenote', github_api))
  </code></pre>
  <p>and i face the below error:</p>
  <pre><code>---------------------------------------------------------------------------
  ValueError                                Traceback (most recent call last)
  &lt;ipython-input-25-11cbe96472f5&gt; in &lt;module&gt;
  ----&gt; 1 branches = json_normalize(branches_of_repo('taniarascia', 'takenote', github_api))
  
  &lt;ipython-input-18-33fa60f7c673&gt; in branches_of_repo(repo, owner, api)
        6         url = api + '/repos/{}/{}/branches?page={}&amp;per_page=100'.format(owner, repo, i)
        7         branch_pg = gh_session.get(url = url)
  ----&gt; 8         branch_pg_list = [dict(item, **{'repo_name':'{}'.format(repo)}) for item in branch_pg.json()]
        9         branch_pg_list = [dict(item, **{'owner':'{}'.format(owner)}) for item in branch_pg_list]
       10         branches = branches + branch_pg_list
  
  &lt;ipython-input-18-33fa60f7c673&gt; in &lt;listcomp&gt;(.0)
        6         url = api + '/repos/{}/{}/branches?page={}&amp;per_page=100'.format(owner, repo, i)
        7         branch_pg = gh_session.get(url = url)
  ----&gt; 8         branch_pg_list = [dict(item, **{'repo_name':'{}'.format(repo)}) for item in branch_pg.json()]
        9         branch_pg_list = [dict(item, **{'owner':'{}'.format(owner)}) for item in branch_pg_list]
       10         branches = branches + branch_pg_list
  
  ValueError: dictionary update sequence element #0 has length 1; 2 is required
  </code></pre>