r2py version of allpairsping.repy