title: 5 maximum values in a python dictionary
body: <p>I have a dictionary like this:</p>
  
  <pre><code>A = {'a':10, 'b':843, 'c': 39,.....}
  </code></pre>
  
  <p>I want to get the 5 maximum values of this dict and store a new dict with this. To get the maximum value I did:</p>
  
  <pre><code>max(A.iteritems(), key=operator.itemgetter(1))[0:]
  </code></pre>
  
  <p>Perhaps it is an easy task, but I am stuck on it for a long time. Please help!!!</p>