from shapely.geometry import LineString, MultiPolygon
from shapely.ops import polygonize, unary_union
ls = LineString(np.c_[x, y])
Splitting self-intersecting polygon only returned one polygon in shapely in Python