Stav dette: Python workflow for segmenting multiphase flow in porous rocks