<s> import os <EOL> import sys <EOL> try : <EOL> import __builtin__ <EOL> except ImportError : <EOL> import builtins as __builtin__ <EOL> file_open = __builtin__ . open <EOL> try : <EOL> str_type = unicode <EOL> except NameError : <EOL> str_type = str <EOL> DATA_OPEN_FLAGS = os . O_RDWR | os . O_CREAT | os . O_APPEND <EOL> if sys . platform . startswith ( '<STR_LIT>' ) : <EOL> DATA_OPEN_FLAGS = DATA_OPEN_FLAGS | os . O_BINARY </s>
