[SATYR PATCHv2 6/6] python: type-agnostic distances for list of threads