Python flexible slugify function
