fix assertion crash in Py3 debug builds by avoiding overly aggressive reference reuse