thread status and print opcode for python