Update filter.py

Types added and modified