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