Update fdweights.py

Fixed error in docstring : w[0] should be replaced by w[0,:], etc.