def unico(string):
 if (is_python2() and (not isinstance(string, unicode))):
  return unicode(string, encoding='utf-8', errors='replace')
 return string

def unico ( string ) : if ( is_python2 ( ) and ( not isinstance ( string , unicode ) ) ) : return unicode ( string , encoding = 'utf-8' , errors = 'replace' ) return string
converts into unicode string .