def cleanPolyline(elem, options):
 pts = parseListOfPoints(elem.getAttribute('points'))
 elem.setAttribute('points', scourCoordinates(pts, options, True))

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