use XDECREF instead of DECREF with a check