title: how to get dictionary value in python from dynamic key
body: <pre><code>from xlrd import open_workbook
  
  book = open_workbook('trial.xls')
  sheet=book.sheet_by_index(0)
  
  name_email={}
  
  i=0
  for row_index in range(sheet.nrows):
      if name_email.has_key(sheet.cell(row_index,i).value):
           name_email[str(sheet.cell(row_index,i).value.strip())]=sheet.cell(row_index,i+1).value,)
      else:              
          abc = str(sheet.cell(row_index,i).value.strip())
          print repr(abc)
          print '"{0}"'.format(repr(abc))
          # print name_email[abc]
          name_email[str(sheet.cell(row_index,i).value.strip())]=sheet.cell(row_index,i+1).value
  i+=1            
  print name_email.keys()
  print name_email
  </code></pre>
  
  <p>The out put is :
      'manoj'
      "'manoj'"
      'dibyendu'
      "'dibyendu'"
      'sourav'
      "'sourav'"
      ['dibyendu', 'sourav', 'manoj']
      {'dibyendu': (u'd.b@gmail.com',), 'sourav': (u's.b@gmail.com',), 'manoj': (u'm.c@gmail.com',)}</p>
  
  <p>But still cant access print name_email[abc] throwing the error 
      print name_email[abc]
      KeyError: 'manoj'</p>