def unhexdigest(s):
    l = []
    for i in xrange(0, len(s), 2):
        l.append(chr(int(s[i:i+2], 16)))
    return "".join(l)
Take a string of hexadecimal numbers (as ascii) and convert to binary string.
dataset/ETHPy150Open kdart/pycopia/aid/pycopia/aid.py/unhexdigest