Find contact pairs

Hi all, How "Find contact pairs" option can be used as python command ?