explain example plcurve python code