KZFilter.py modified.