When I write:
expint = 34614 expint = expint.to_bytes(2,\'big\')
I get a value of expint = b\'\\x876\' instead of b\'\\x87\\x36\'(the 3 is