Slicer python