def g(x=None): return petsc_solver.create_matrix()
def g(x=None): print "started PETSc, process", rank sys.stdout.flush() petsc_solver.create_matrix() print "finished PETSc, process", rank sys.stdout.flush()