As the previous question here: Print a single byte as hex in Python 3, I found the script works well if I execute it as an executable; however, if I ran python
python