def _consume_bytes(seq, num=1):
 bytes = []
 for i in range(0, _B(num), 2):
  bytes.append(int(seq[i:(i + 2)], 16))
 return (bytes, seq[_B(num):])

def _consume_bytes ( seq , num = 1 ) : bytes = [ ] for i in range ( 0 , _B ( num ) , 2 ) : bytes . append ( int ( seq [ i : ( i + 2 ) ] , 16 ) ) return ( bytes , seq [ _B ( num ) : ] )
consumes bytes for num ints coverts to int .