fix Python iteration problem with AttractPairList