itertools.ifilterfalse with a generator instead of list