title: TypeError: list indices must be integers, not str in Python
body: <p>I have been having this problem for the last 2 days and i can't fix it.</p>
  
  <pre><code>import urllib.request
  import json
  import base64
  name = "koalaaaa"
  url = "https://api.mojang.com/users/profiles/minecraft/" + name
  rawdata = urllib.request.urlopen(url)
  newrawdata = rawdata.read()
  jsondata = json.loads(newrawdata.decode('utf-8'))
  results = jsondata['id']
  url_uuid = "https://api.mojang.com/user/profiles/" + results + "/names"
  rawdata_uuid = urllib.request.urlopen(url_uuid)
  newrawdata_uuid = rawdata_uuid.read()
  jsondata_uuid = json.loads(newrawdata_uuid.decode('utf-8'))
  results = jsondata_uuid['name']
  print (results)
  </code></pre>
  
  <p>and i get the error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "C:/Python34/unmigrated.py", line 14, in &lt;module&gt;
  results = jsondata_uuid['name']
  TypeError: list indices must be integers, not str
  </code></pre>