I recommend working with polygons for the best results!Interior lines(holes) are not lost; they are simply not displayed in the method result. Use the Shapely.PerimeterInterior method to retrieve interior lines(holes)!
An example of transformations

This creates a geometry that defines the surrounding area. This operation defines the area covered by the geometry.
All lines belonging to the geometry are stored within the method.
