code: def cleanPolyline(elem, options):
      
      pts = parseListOfPoints(elem.getAttribute('points'))
      elem.setAttribute('points', scourCoordinates(pts, options, True))
docs: Scour the polyline points attribute