code: def unicode2ascii(text, expand=True):
      r
      translate = UTF8_TO_ASCII if not expand else UTF8_TO_MULTIASCII
      output = ''
      for c in text:
          if not c or ord(c) < 128:
              output += c
          else:
              output += translate[c] if c in translate else ' '
      return output.strip()
docs: r""" Translate UTF8 characters to ASCII
  
      >> unicode2ascii("żółw")
      zozw
  
      utf8_letters =  'ą ę ć ź ż ó ł ń ś “ ” ’'.split()
      ascii_letters = 'a e c z z o l n s " " \''