def hexdecode(value):
 value = value.lower()
 return (value[2:] if value.startswith('0x') else value).decode('hex')

def hexdecode ( value ) : value = value . lower ( ) return ( value [ 2 : ] if value . startswith ( '0x' ) else value ) . decode ( 'hex' )
decodes string value from hex to plain format .