Update piecewise.py

Corrected a typo.
Merge pull request #7647 from coder006/typo

Correct a typo in piecewise.py