Python Use Numpy Array To Scalar Product