The issue is with the lock cylinder shift interlock solenoid. This is inside the steering column. You can get to this solenoid and remove it and spray it out with clean so that it won't stick. It may also just need to be replaced. Instructions of how to remove this can be found here: http://sparkys-answers.com/2009/09/2002-pontiac-grand-prix-changing.html