title: String indices must be integers
body: <p>I am getting the following error:</p>
  
  <blockquote>
    <p><em>string indices must be integers, not str</em></p>
  </blockquote>
  
  <p>How can I resolve this?  Here is the code: </p>
  
  <pre><code>    if args['params']['text'][:5] == '!temp':
          degreeChar = u'\u00b0'
          url = 'http://api.worldweatheronline.com/free/v1/weather.ashx?q=' + args['params']['text'][9:] + '&amp;format=json&amp;num_of_days=1&amp;key=' + WeatherAPIkey
          json_obj = urllib.urlopen(url)
          data = json.load(json_obj)
          temp = int(data['data']['current_condition']['temp_C'])
          ws.send('5:::' + genMessage('chatMsg', channel, username, 'Temperature in ' + args['params']['text'][6:] + ': ' + temp + degreeChar + 'C'))
  </code></pre>
  
  <p>The error is on this line: <code>temp = int(data['data']['current_condition']['temp_C'])</code><br>
  The API is here: <a href="http://i.imgur.com/wHEKTyz.png" rel="nofollow">img</a></p>