Update filters.py

Removing deprecation warnings