code: def _CreateLineStringForShape(self, parent, shape):
      
      coordinate_list = [(longitude, latitude) for
                         (latitude, longitude, distance) in shape.points]
      return self._CreateLineString(parent, coordinate_list)
docs: Create a KML LineString using coordinates from a shape.
  
      Args:
        parent: The parent ElementTree.Element instance.
        shape: The transitfeed.Shape instance.
  
      Returns:
        The LineString ElementTree.Element instance or None if coordinate_list is
        empty.