Replace Number In Numpy Array To Matrix