I'm trying to convert hexdata into binary and then back to hex. I'm getting hexdata but as byte object
hexdata='91278c4bfb3cbb95ffddc668d995bfe0'
b=binascii.a2b_hex(hexdata)
print (b)
b"\x91'\x8cK\xfb<\xbb\x95\xff\xdd\xc6h\xd9\x95\xbf\xe0"
binascii.b2a_hex(b)
b'91278c4bfb3cbb95ffddc668d995bfe0'
I'm expecting this to come as simple string (as my input i.e., hexstring) that I can use in my code.