That's a gratuitous dependency on a heavy library, which could be rewritten using just `itertools`. Part of: - https://github.com/sagemath/sage/issues/29705