[docs] Bug in functools.reduce