np.savetxt(fileDir, M, delimiter=" ", fmt="%10.6f") # where M can be one or more than one array, a matrix, etc.