It's a tiny library that has not been updated in years, and it was leading to a warning on startup: DeprecationWarning: invalid escape sequence \W return re.sub("\W+", "", string)