use skimage.measure.label