Instances of binascii's methods `hexlify`, `unhexlify`, and `a2b_hex` have been replaced with the build-in bytes module's `hex` and `fromhex` methods where appropriate to make bytes <-> hex-string conversions consistent across the functional test files and test_framework.
This is a backport of core#22619