Python Numpy Sum Array Matlab