def _dehex(s):
 import re
 s = re.sub('[^a-fA-F\\d]', '', s)
 return s.decode('hex')

def _dehex ( s ) : import re s = re . sub ( '[^a-fA-F\\d]' , '' , s ) return s . decode ( 'hex' )
liberally convert from hex string to binary string .