Add comment for Python 3 code part
Do not use hex encoding not present in Python 3, use binascii.hexlify instead