Python Numpy Sum Array Php Use For Loop