Finite Difference Approximation Python