First step it to take the shift linkage off and place the trans in Park firmly by hand. If you can pop it out of park in that condition, then the problem is internal. If it's a shifter problem, you'll want to fix that quickly because if it's not putting the trans in park properly it could also not be placing the internal valve in the right place - which could hurt the trans. The primary locator for any specific trans gear is the internal "rooster comb" and detent spring lever that positions the shift valve. Anything external has to conform to the internal positions. On my race trans/shifters, I place the trans and shifter in neutral, then adjust the cable, linkage,etc to fit the pin easily in the trans lever. The go to first (or low in a stocker's case) and remove the linkage - the pin should slide in and out of trans level without binding and the trans should be firmly in that gear position. Put the pin back in, shift to park, perform same linkage test. If it lines up in the middle (neutral) but is off on the ends that has to be analyzed and fixed where possible.