P0171 could be MAF, but most likely its your wastegate. See the pdf in the ProtegeGarage section on here. P0421 is most likely caused by your catless pipe(especially since you are not using the MIL or antifouler method) but could also mean your sensor is bad(doubtful with 51K).
Quit driving the car aggressively until you check and replace the WGA if needed. Install either the MIL or antifoulers. Clean your 02 sensor. Change your plugs if original.
Quit driving the car aggressively until you check and replace the WGA if needed. Install either the MIL or antifoulers. Clean your 02 sensor. Change your plugs if original.