http://www.pythonreader.com/2022/12/how-to-decode-hex-string-in-python-chris.html