It was moved to functools.
functools
You can add
from functools import reduce
before you use the reduce.
Or if you use the six library
from six.moves import reduce