reduce() is no longer a global on Python 3