replace ifilter with filter, suppress pylint warning for filter