Replace Number In Numpy Array To Scalar