def poly2bez(poly, return_bpoints=False):
bpoints = polynomial2bezier(poly)<EOL>if return_bpoints:<EOL><INDENT>return bpoints<EOL><DEDENT>else:<EOL><INDENT>return bpoints2bezier(bpoints)<EOL><DEDENT>
Converts a cubic or lower order Polynomial object (or a sequence of
    coefficients) to a CubicBezier, QuadraticBezier, or Line object as
    appropriate.  If return_bpoints=True then this will instead only return
    the control points of the corresponding Bezier curve.
    Note: The inverse operation is available as a method of CubicBezier,
    QuadraticBezier and Line objects.