Choose PyString/PyBytesObjectPtr according to python version + support signals terminating the inferior.