def twobyte(val):
 assert isinstance(val, int)
 return divmod(val, 256)

def twobyte ( val ) : assert isinstance ( val , int ) return divmod ( val , 256 )
convert an int argument into high and low bytes .