title: "TypeError: 'unicode' object does not support item assignment" in dictionaries
body: <p>I am trying to build/update a dictionary. I have nicknames as keys in temp_dict and looking for ids to add.</p>
  
  <p>Excerpt form my code. I think it is enough for you to see my mistake.</p>
  
  <pre><code>d1 = {u'status': u'ok', u'count': 1, u'data': [{u'nickname': u'45sss', u'account_id': 553472}]}
  
  
     temp_dict = {}
     for key, value in d1.iteritems():
          if "data" == key:
              for dic2 in value:
                    x = dic2['nickname']
                    y = dic2['account_id']
                    temp_dict[x] = y;
  </code></pre>
  
  <p>My error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "untitled.py", line 36, in &lt;module&gt;
  get_PlayerIds_Names_WowpApi_TJ_() #Easy going. Some issues with case letters.
  File "g:\Desktop\Programming\WOWP API\functions.py", line 44, in get_PlayerIds_Names_WowpApi_TJ_
  check_missing_player_ids(basket)
  File "g:\Desktop\Programming\WOWP API\functions.py", line 195, in check_missing_player_ids
  temp_dict[x] = y;
  TypeError: 'unicode' object does not support item assignment
  </code></pre>
  
  <p>There are multiple SO entries regarding the same error. But no are connected to such dictionary manipulation.</p>