When you changed the IAC and the TP sensor, did you disconnect the the battery to clear the memory of the computer? It helps speed up the idle re-learn process tremendously when replacing faulty sensors and such.
Disconnect the battery for a half hour, preferably, when the engine is cold. Re-connect the battery and start the car, then just let it idle for about 15 minutes, or until it comes up to operating temperature. Then drive it around for 10 or 15 miles.
I assume that all of the tune-up items, filters, plugs, wires, etc. have all been checked and both the MAF sensor and the throttle body have been cleaned as well.