Sum of rows and columns in 2d array in python. Sum of array elements over a given axis.