replace old-school formatting in Filter.py with f-strings