title: sort values and return list of keys from dict python
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/613183/python-sort-a-dictionary-by-value">Python: Sort a dictionary by value</a>  </p>
  </blockquote>
  
  
  
  <p>I have a dictionary like this:</p>
  
  <pre><code>A = {'Name1':34, 'Name2': 12, 'Name6': 46,....}
  </code></pre>
  
  <p>I want a list of keys sorted by the values, i.e. <code>[Name2, Name1, Name6....]</code></p>
  
  <p>Thanks!!!</p>