code: def drawPolyline(page, points, color=None, fill=None, dashes=None,
                   width=1, morph=None, roundCap=False, overlay=True,
                   closePath=False):
      
      img = page.newShape()
      Q = img.drawPolyline(points)
      img.finish(color=color, fill=fill, dashes=dashes, width=width,
                 roundCap=roundCap, morph=morph, closePath=closePath)
      img.commit(overlay)
  
      return Q
docs: Draw multiple connected line segments.