Replace (un)hexlify rewrites with binascii.(un)hexlify functions; use consistent naming