we need to interchange the rows and then perform l*u==a

a = matrix([[0,2], [ 3 ,4]])
a.swap_rows(0,1)print a
u = matrix([[1,2], [ 0, 2]])
l = matrix([[1,0], [ 3, 1]])
a==l*u

output

[3 4]
[0 2]
False