fixed two more python2-style uses of filter