cocopro: finished segmentation script (we still make a dumb assumption, but it should get us off the ground for now);