Python Numpy Sum Array Php Format