Using TLS cleanup for PyObj pointers