FIX: filter returns a generator in python3