concatenate all rows of a numpy matrix in python,a.ravel()