title: python: how to convert if statements to enum or make it pythonic
body: <p>I don't quite know how to word this question.  So here goes. I have this code which looks terrible.  <code>recommendation</code> only takes 5 cases.</p>
  
  <pre><code>if avg_recommendation=='BUY':
      recommendation=5
  if avg_recommendation=='OVERWEIGHT':
      recommendation=4
  if avg_recommendation=='HOLD':
      recommendation=3
  if avg_recommendation=='UNDERWEIGHT':
      recommendation=2
  if avg_recommendation=='SELL':
      recommendation=1
  </code></pre>
  
  <p>And I want to make it pythonic.  How do I do it?  I've read about enum and it looks like it might be my solution.  But I am open to any solution that is elegant to look at. I'm still using python2.7 
  Thanks.</p>