Python script that filters blacklisted words from SQL statements