def distributed_fault_patches_to_config(patches):
    """
    Input: List of PsCmpRectangularSource(s)
    """
    srows = []
    for i, patch in enumerate(patches):
        srows.append('%i %s' % (i + 1, patch.string_for_config()))
    return '\n'.join(srows), len(srows)
