def unesc(s, esc_chars):
 for c in esc_chars:
  esc_str = (u'\\' + c)
  s = s.replace(esc_str, c)
 return s

def unesc ( s , esc_chars ) : for c in esc_chars : esc_str = ( u'\\' + c ) s = s . replace ( esc_str , c ) return s
unescape special characters .