Python Numpy Sum Array Matlab Onramp