Find S Algorithm Using Python Notebook