Updated tract_seg.py to incorporate the zip function (compression of intermediate results)