Updated filter.py