fix for python 3 because filter returns a lazy object