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

As above, this import can be removed.