title: TypeError: string indices must be integers, not str
body: <pre><code>    import urllib2
  
      currency = 'EURO'
      req = urllib2.urlopen(' http://rate-exchange.appspot.com/currency?from=USD&amp;to='+ currency +'') 
      result = req.read() 
      print p
      p = result["rate"]
      print int(p) 
  </code></pre>
  
  <p>this what i got with <code>print p</code>
    result = {"to": "EURO", "rate": 0.76810814999999999, "from": "USD"}</p>
  
  <p>but I have the error:</p>
  
  <pre><code>TypeError: string indices must be integers, not str
  </code></pre>