Rename and deprecate filter module to prevent shadowing of built-in keyword

I think this line can be removed... doctests are always run in the current file's scope, right?