[docs] Error in functools.reduce docs