Correct a typo in piecewise.py

Correct a typo in piecewise.py