import sys
m = '0x68656c6c6f'
m = m[2:]
message = ''.join([chr(int(''.join(c), 16)) for c in zip(m[0::2], m[1::2])])
sys.stdout.write(message+'!!!\n')
sys.stdout.flush()
me@mycomputer:/asdf/myfiles$
λ python file.py
hello!!!
me@mycomputer:/asdf/myfiles$
λ