iter version of {key|val}filter
indent imports