python within slicer