old_contents: 
  
  def positionsOf(geojson):
      """ Find all the Positions in a valid GeoJSON object. """
      positions = []
      if geojson["type"] == "Point":
          positions.append(geojson["coordinates"])
      elif geojson["type"] in ["MultiPoint", "LineString"]:
          positions += [position for position in geojson["coordinates"]]
      elif geojson["type"] in ["MultiLineString", "Polygon"]:
          positions += [position for line_string in geojson["coordinates"] for position in line_string]
      elif geojson["type"] == "MultiPolygon":
          positions += [position for polygon in geojson["coordinates"] for line_string in polygon for position in line_string]
      elif geojson["type"] == "GeometryCollection":
          for geometry in geojson["geometries"]:
              positions += positionsOf(geometry)
      elif geojson["type"] == "Feature":
          positions += positionsOf(geojson["geometry"])
      elif geojson["type"] == "FeatureCollection":
          for feature in geojson["features"]:
              positions += positionsOf(feature)
      return positions
  
  
  def featuresOf(geojson):
      """ Find all Features in a valid GeoJSON object. """
      features = []
      if geojson["type"] == "Feature":
          features.append(geojson)
      elif geojson["type"] == "FeatureCollection":
          features += geojson["features"]
      return features
  
  
  def geometriesOf(geojson):
      """ Find all Geometries in a valid GeoJSON object. """
      geometries = []
      if geojson["type"] in ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"]:
          geometries.append(geojson)
      elif geojson["type"] == "GeometryCollection":
          for geometry in geojson["geometries"]:
              geometries += geometriesOf(geometry)
      elif geojson["type"] == "Feature":
          geometries += geometriesOf(geojson["geometry"])
      elif geojson["type"] == "FeatureCollection":
          for feature in geojson["features"]:
              geometries += geometriesOf(feature)
      return geometries
  
  
new_contents: 
  
  def positionsOf(geojson):
      """ Find all Positions in a valid GeoJSON object. """
      positions = []
      if geojson["type"] == "Point":
          positions.append(geojson["coordinates"])
      elif geojson["type"] in ["MultiPoint", "LineString"]:
          positions += [position for position in geojson["coordinates"]]
      elif geojson["type"] in ["MultiLineString", "Polygon"]:
          positions += [position for line_string in geojson["coordinates"] for position in line_string]
      elif geojson["type"] == "MultiPolygon":
          positions += [position for polygon in geojson["coordinates"] for line_string in polygon for position in line_string]
      elif geojson["type"] == "GeometryCollection":
          for geometry in geojson["geometries"]:
              positions += positionsOf(geometry)
      elif geojson["type"] == "Feature":
          positions += positionsOf(geojson["geometry"])
      elif geojson["type"] == "FeatureCollection":
          for feature in geojson["features"]:
              positions += positionsOf(feature)
      return positions
  
  
  def featuresOf(geojson):
      """ Find all Features in a valid GeoJSON object. """
      features = []
      if geojson["type"] == "Feature":
          features.append(geojson)
      elif geojson["type"] == "FeatureCollection":
          features += geojson["features"]
      return features
  
  
  def geometriesOf(geojson):
      """ Find all Geometries in a valid GeoJSON object. """
      geometries = []
      if geojson["type"] in ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"]:
          geometries.append(geojson)
      elif geojson["type"] == "GeometryCollection":
          for geometry in geojson["geometries"]:
              geometries += geometriesOf(geometry)
      elif geojson["type"] == "Feature":
          geometries += geometriesOf(geojson["geometry"])
      elif geojson["type"] == "FeatureCollection":
          for feature in geojson["features"]:
              geometries += geometriesOf(feature)
      return geometries
  
  
subject: Make docstrings consistent in extract.py.