Term Document Matrix Numpy Linspace