def write_bytecode_file(bytecode_path, code, magic_int, filesize=<NUM_LIT:0>):
fp = open(bytecode_path, '<STR_LIT:wb>')<EOL>try:<EOL><INDENT>if PYTHON3:<EOL><INDENT>fp.write(pack('<STR_LIT>', magic_int, b'<STR_LIT:\r>', b'<STR_LIT:\n>'))<EOL><DEDENT>else:<EOL><INDENT>fp.write(pack('<STR_LIT>', magic_int, '<STR_LIT:\r>', '<STR_LIT:\n>'))<EOL><DEDENT>fp.write(pack('<STR_LIT>', int(time.time())))<EOL>if (<NUM_LIT> <= magic_int < <NUM_LIT>):<EOL><INDENT>fp.write(pack('<STR_LIT>', filesize))<EOL><DEDENT>fp.write(marshal.dumps(code))<EOL><DEDENT>finally:<EOL><INDENT>fp.close()<EOL><DEDENT>
Write bytecode file _bytecode_path_, with code for having Python
    magic_int (i.e. bytecode associated with some version of Python)