Part of SF patch #1513870 (the still relevant part) -- add reduce() to
functools, and adjust docs etc.
11 files changed