What's the correct way to convert bytes to a hex string in Python 3? What's the correct way to convert bytes to a hex string in Python 3? python-3.x python-3.x