python/retrace: Interpret is_texture_referenced/is_buffer_referenced.