suggest 

`from toolz.compatibility import filter` at top