[SciPy-Dev] `trim1` and 'trimboth' backwards incompatible change