Pātuhitia tēnei: Python workflow for segmenting multiphase flow in porous rocks