fix slugify for python 3