fix tp_handle_inspect sigsegv

Signed-off-by: xiehuc <xiehuc@gmail.com>