workaround for numpy savetxt bug when being passed a scalar