Python shapely for merging linestrings.