I think it is better to make sets from tags and attrs before creating lambdas. And maybe we can write `tag_func=tags.__contains__` then, not sure about it. Micro-optimizing ftw.