is equivalent to: target.write('p' + '00'*16 + '\n')
(you should see that both result in the same recv_msg).
Finally, the target will not respond to target.write('p' + '00'*32 + '\n') because the ‘p’ command is expected to have a 16-byte payload; the target firmware is such that it only responds to properly formatted commands. It ignores commands with an incorrect payload size.