Python Numpy Flatten Array Numpy Linspace