[SATYR PATCHv3 5/6] python: distance computation between pair of threads