i currently pack hex number in little endian with struct.pack() or p32() from pwnlib, i always got bytes object output.
struct.pack()
p32()
b\'\\xde\\xad\