Python Use Numpy Array To Scalar