code: def slugify(string):
      
      string = re.sub('[^\w .-]', '', string)
      string = string.replace(" ", "-")
      return string
docs: Removes non-alpha characters, and converts spaces to hyphens. Useful for making file names.
  
  
      Source: http://stackoverflow.com/questions/5574042/string-slugification-in-python