Replace Array Element Numpy Linspace Python