from struct import unpack def assert_status(b): s,=unpack('