Capturing coincident node pairs

I can generate a list of coincident nodes pairs interactively, e.g.,
topology check coincident node volume all tolerance 1.0e-6
( 23, 50) ( 26, 53) ( 31, 12) ( 33, 18) ( 34, 20)
( 39, 4) ( 41, 14) ( 45, 6) ( 47, 7)

How can I capture this list in either Aprepro or Python so that I can process each node pair?