make predicate calculation behave the same as in python2.x due to python3.x changes in filter() and map()