Update finite_diff.py

Fixed typos.
Merge pull request #7794 from naslundx/patch-1

Update finite_diff.py