Update piecewise.py

Correct a typo in piecewise.py