You need to reset the PCM. Disconnect the negative battery terminal for 1-2 minutes and then reconnect. Start the engine and let it idle, DO NOT REV THE ENGINE, and let it come up to operating temp while idling. Switch it off, restart and see if that cures your problem.
If you had the TPS sensor removed, check to make sure you didn't get it back on upside down and the screws are not to tight. The electrical connector should be at the bottom.