Вы можете использовать binascii.unhexlify :
import sys
from binascii import unhexlify as unhex
# Prints out the character 'N'
sys.stdout.write(unhex('4e'))
# ...
# Prints out Hello, world!
sys.stdout.write(''.join(map(unhex, [
'48', '65', '6c',
'6c', '6f', '2c',
'20', '77', '6f',
'72', '6c', '64',
'21'
])))