Fix for bug #21233 (https://gna.org/bugs/?21233) - the missing mpi4py multi-processor messages.
When multiple commands were being sent to one slave, the captured IO was being overwritten by each
executed command. Therefore the slave would only return the printouts from the last command.