title: Normalizing dictionary values
body: <p>I have a (quite large) dictionary that has numeric values, so for example in the form <code>data = {'a': 0.2, 'b': 0.3, ...}</code>. What is the best way to normalize these values (EDIT: make sure the values sum to 1)?</p>
  
  <p>And what I'm especially interested in: Would it, for certain dataset size, be beneficial to use for example numpy instead of dict comprehension?</p>
  
  <p>I'm using python 2.7.</p>