def serializePath(pathObj, options):
 return ''.join([(cmd + scourCoordinates(data, options, (cmd == 'a'))) for (cmd, data) in pathObj])

def serializePath ( pathObj , options ) : return '' . join ( [ ( cmd + scourCoordinates ( data , options , ( cmd == 'a' ) ) ) for ( cmd , data ) in pathObj ] )
reserializes the path data with some cleanups .