Get generate-filter.py to work again