Fixing doctest of towsp method by including isinstance(wsp, ps.weights.weights.WSP)