A Python Segmentation Tool