def task(): MuninNodeClient.list_metrics(cbk)
def cbk(node, client, data): metrics = data.strip().split() MuninNodeClient.fetch_data(metrics, lambda s, d: result_callback(node, s, d))