Update various method signatures in mpi.py, move logging utils to separate module, output uncaught exception messages to logger rather than stdout.