def polygon2pathd(polyline_d):
return polyline2pathd(polyline_d, True)<EOL>
converts the string from a polygon points-attribute to a string 
    for a Path object d-attribute.
    Note:  For a polygon made from n points, the resulting path will be
    composed of n lines (even if some of these lines have length zero).