Install mock and conditionally install mpi4py