Python Test If Numpy Linspace