title: Convert dictionary keys from dates to months using datetime
body: <p>I have a dictionary where the keys are dates formatted '%m/%d/%y' and I want to parse this apart so I can graph the values by month. So the objective is just to transform the keys from m/d/y to just m and keep the same values in the dictionary.</p>
  
  <pre><code>months = dict.keys()
  for i in months:
      i = dt.datetime.strptime(i[months],'%m/%d/%y').month
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>TypeError: string indices must be integers
  </code></pre>
  
  <p>Thanks for any suggestions.</p>