pyldb: DECREF old debug function when resetting it