[Python-checkins] gh-118714: Make the pdb post-mortem restart/quit behavior more reasonable (#118725)