reduce in python2 is functools.reduce in python 3

yes, Python3 can fly !