def wr_long(f, x):
if PYTHON3:<EOL><INDENT>f.write(bytes([x        & <NUM_LIT>]))<EOL>f.write(bytes([(x >> <NUM_LIT:8>)  & <NUM_LIT>]))<EOL>f.write(bytes([(x >> <NUM_LIT:16>) & <NUM_LIT>]))<EOL>f.write(bytes([(x >> <NUM_LIT>) & <NUM_LIT>]))<EOL><DEDENT>else:<EOL><INDENT>f.write(chr( x        & <NUM_LIT>))<EOL>f.write(chr((x >> <NUM_LIT:8>)  & <NUM_LIT>))<EOL>f.write(chr((x >> <NUM_LIT:16>) & <NUM_LIT>))<EOL>f.write(chr((x >> <NUM_LIT>) & <NUM_LIT>))<EOL><DEDENT>
Internal; write a 32-bit int to a file in little-endian order.