status = MPI.Status()
comm.Probe(source=0, tag=22, status=status)
nchars = status.Get_count(MPI.CHARACTER)
data = np.empty(nchars, dtype='S')
comm.Recv([data, MPI.CHARACTER], source=0, tag=22)
Is it possible to send data from a Fortran program to Python using MPI?