- Fix string to hex conversion on Python 3