def int_to_bin(i):
 i1 = (i % 256)
 i2 = int((i / 256))
 return (chr(i1) + chr(i2))

def int_to_bin ( i ) : i1 = ( i % 256 ) i2 = int ( ( i / 256 ) ) return ( chr ( i1 ) + chr ( i2 ) )
integer to two bytes .