py3x filter for exclusion test is a generator instead of a function