[python] add closest pair