New submission from Devin Jeanpierre:
Maybe the functions should be split up into those you shouldn't need to call
directly, and those you should? I find it unlikely that you're supposed to use
codecs.encode(..., 'hex') and codecs.decode(..., 'hex') instead of binascii
(the only other thing,
R. David Murray added the comment:
No, actually, using codecs would be the most straightforward way to achieve
portability. The usual way to get hex in python2 was encode('hex'), which uses
the codec. But if you want to use hexlify instead, I don't see any reason not
to. There's no reason