Plotting Piecewise Functions In Python