def _get_unicode(data, force=False):
 if isinstance(data, binary_type):
  return data.decode(u'utf-8')
 elif (data is None):
  return u''
 elif force:
  if PY2:
   return unicode(data)
  else:
   return str(data)
 else:
  return data

def _get_unicode ( data , force = False ) : if isinstance ( data , binary_type ) : return data . decode ( u'utf-8' ) elif ( data is None ) : return u'' elif force : if PY2 : return unicode ( data ) else : return str ( data ) else : return data
try to return a text aka unicode object from the given data .