Differentiation matrices in Numpy