fix py3.2 compatibility

unhexlify("ff") doesn't work in py3.2: strings don't support the buffer
interface. It works in py3.3.