Moved filtering into a module

I moved the filtering code into a module and modified the example script to use the module.

Blacklist loading is the responsibility of the calling party, e.g. the example script loads the blacklist.

I also changed it so that when it returns a filtered statement, it uses sqlparse.filter to reformat it.