def setup_cluster(num_cpus, outdir, verbose, error_profile):
 server_socket = setup_server()
 (workers, client_socks_and_adrs) = setup_workers(num_cpus, outdir, server_socket, verbose=verbose, error_profile=error_profile)
 client_sockets = [sock for (sock, addr) in client_socks_and_adrs]
 return (client_sockets, workers, server_socket)

def setup_cluster ( num_cpus , outdir , verbose , error_profile ) : server_socket = setup_server ( ) ( workers , client_socks_and_adrs ) = setup_workers ( num_cpus , outdir , server_socket , verbose = verbose , error_profile = error_profile ) client_sockets = [ sock for ( sock , addr ) in client_socks_and_adrs ] return ( client_sockets , workers , server_socket )
setup server and clients .