title: Python - Decode utf-8 list in lists (decode entire list objects)
body: <p>Assume that i have a list which has more than one list for example:</p>
  
  <pre><code>l = [['a'],['a','b'],['c'],['d',['a','b'],'f']]
  </code></pre>
  
  <p>with this:</p>
  
  <pre><code>l = [x.decode('UTF8') for x in l]
  </code></pre>
  
  <p>probably i will get error: list object has no attribute 'decode'</p>
  
  <p>("l" list created from tokenized text which has its every words made list object. Tried many solution for overcome decode struggle but still cant print non-ascii characters)</p>
  
  <pre><code>with open(path, "r") as myfile:
      text=myfile.read()
  
  text = word_tokenize(text)
  
  d = [[item] if not isinstance(item, list) else item for item in text]
  
  arr = sum(([[x[0] for x in g]] if k else list(g)
       for k, g in groupby(d, key=lambda x: x[0][0].isupper())),
      [])
  
  arr = [x.decode('UTF8') for x in arr]
  </code></pre>
  
  <p><strong>INPUT (my text file):</strong></p>
  
  <pre><code>Çanakkale çok güzel bir şehirdir. Çok beğendik.
  </code></pre>
  
  <p><strong>OUTPUT :</strong></p>
  
  <pre><code>[[u'\xc7anakkale'], [u'\xe7ok'], [u'g\xfczel'], [u'bir'], [u'\u015fehirdir'], [u'.']. [u'\xe7ok'], [u'be\u011fendik'], [u'.']]
  </code></pre>
  
  <p>my desired output is list but exactly like my input format.</p>