from mpi4py import MPI

comm = MPI.COMM_WORLD
rank = comm.rank
size = comm.size
name = MPI.Get_processor_name()

if rank == 0:
	data = {'a':1,'b':2,'c':3}

else:
	data = None

data = comm.bcast(data, root = 0)
print 'rank:', rank, data