<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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])