itertools — Functions creating iterators for efficient looping
This module implements a number of
iterator building blocks inspired by constructs from APL, Haskell, and SML. Each has been recast in a form suitable for Python.
functools — Higher-order functions and operations on callable objects
operator — Standard operators as functions