generalcartesianproduct (pypi): extends the existing functionality of `itertools.product` by variable limits.
Keywords: combinatorics|python|sage