def _betmap(G_normalized_weight_sources_tuple):
 return nx.betweenness_centrality_source(*G_normalized_weight_sources_tuple)

def _betmap ( G_normalized_weight_sources_tuple ) : return nx . betweenness_centrality_source ( * G_normalized_weight_sources_tuple )
pool for multiprocess only accepts functions with one argument .