title: Python get keys from ordered dict
body: <p>python noob here. So I'm making a program that will take a JSON file from a url and parse the information and put it into a database. I have the JSON working, thankfully, but now I am stuck, I'll explain it through my code. </p>
  
  <pre><code>playerDict = {
              "zenyatta" : 0,
              "mei" : 0,
              "tracer" : 0,
              "soldier76" : 0,
              "ana" : 0,
              ...}
  </code></pre>
  
  <p>So this is my original dictionary with the which I then fill with the players data for each hero.</p>
  
  <pre><code>topHeroes = sorted(playerDict.items(),key = operator.itemgetter(1),reverse = True)
  </code></pre>
  
  <p>I then sort this list and it turns the heroes with the most amount of hours played first. </p>
  
  <pre><code>topHeroesDict = topHeroes[0:3]
  playerDict['tophero'] = topHeroesDict[0]
  </code></pre>
  
  <p>I then get the top three heroes. The second line here prints out a list like so: </p>
  
  <pre><code>'secondhero': ('mercy', 6.0)
  </code></pre>
  
  <p>Whereas I want the output to be:</p>
  
  <pre><code>'secondhero': 'mercy'
  </code></pre>
  
  <p>Would appreciate any help i have tried the code below with and without list.</p>
  
  <pre><code>list(topHeroes.keys())[0]
  </code></pre>
  
  <p>So thanks in advance and apologies for the amount of code! </p>