P0740 is a tcc (torque converter clutch stuck off) code.
P01738 is a slippage code, which is going to be related to the other. The key isn't coming out because the shifter is out of adjustment, and isn't going into park all the way. Take it back to the trans shop.