sall = ''.join(chr(i) for i in range(256))
len(sall)
re.sub('[\\W_]+', '', sall)
re.sub('[\\W_]+', '', sall, flags=re.LOCALE)
locale.setlocale(locale.LC_ALL, '')
re.sub('[\\W_]+', '', sall, flags=re.LOCALE)
Python remove anything that is not a letter or number