pythonbegin 0 Light Poster

Hi All

I have a matrix in matlab say

a b c
mn 0 2 4
nn 1 2 3 
nv 2 3 5

I want to convert this matrix into a list so that a, b, c in first coulmn, mn,nn,nv in second and values in third like

a mn 0
a nn 1
a nv 2
b mn 2
b nn 2 
.
.
.
c nv 5

I tried reshape but its just cuts the matrix to get this dimension.

I know we can do that using for loop.. Does any one know how to write for loop for this?

or any other tool like reshape?

Thank you!