Utils pairwise function can be replaced by itertools pariwise
We should remove https://gitlab.com/teklia/atr/dan/-/blob/14a54602f2ce89b8732da01a018765e459cec541/dan/utils.py#L159 and use this function https://docs.python.org/3/library/itertools.html#itertools.pairwise instead.