Mesh a label image and write cell info to file (python)