profanity-filter Python module that replaces inappropriate words with something more PG rated. Usage f = Filter('badword and bad words', clean_word='unicorn') safe_string = f.clean() print safe_string