def _int2bytes(val):
 MSB = int(((int(val) & 65280) / 256))
 LSB = int((int(val) & 255))
 return (LSB, MSB)

def _int2bytes ( val ) : MSB = int ( ( ( int ( val ) & 65280 ) / 256 ) ) LSB = int ( ( int ( val ) & 255 ) ) return ( LSB , MSB )
converts a number to a string of bytes .