re.sub('[\\w]+', '___', str(
    ',./\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82-=+', 'utf-8'),
    flags=re.UNICODE)
re.sub('[\\w]+', '___', str(',./\xe4\xbd\xa0\xe5\xa5\xbd-=+', 'utf-8'),
    flags=re.UNICODE)
 matching unicode characters in python regular expressions