def serializePath(pathObj, options):
    """
       Reserializes the path data with some cleanups.
    """
    # elliptical arc commands must have comma/wsp separating the coordinates
    # this fixes an issue outlined in Fix https://bugs.launchpad.net/scour/+bug/412754
    return ''.join([cmd + scourCoordinates(data, options,
                                           control_points=controlPoints(cmd, data),
                                           flags=flags(cmd, data))
                    for cmd, data in pathObj])
Reserializes the path data with some cleanups.