code: def slugify(value):
      
      if six.PY3:
          value = str(value)
      else:
          value = unicode(value)
  
      value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore').decode('ascii')
      value = to_remove.sub('', value).strip().lower()
      return remove_dup.sub('-', value)
docs: Converts to lowercase, removes non-word characters (alphanumerics and
      underscores) and converts spaces to hyphens. Also strips leading and
      trailing whitespace.