What MY? Should not be €400 (at least, not in Switzerland!), and did you reset the ECU after swapping the MAF last week? Note that if you have not had regular service on the car, then it is normal for the O2 sensor to also be faulty, meaning a rest of the ECU can cause even worse problems due to the rich running caused by the under-reading o2 sensor. Worst case; replace (phase 2) MAF, replace O2 sensor, stirp and clean idle solenoid and stepper motor, rest ECU. Should be good to go.
Richard