Fix hexlify for py3.