def load_code(fp, magic_int, code_objects={}):
global internStrings, internObjects<EOL>internStrings = []<EOL>internObjects = []<EOL>seek_pos = fp.tell()<EOL>b =  ord(fp.read(<NUM_LIT:1>))<EOL>if (b & <NUM_LIT>):<EOL><INDENT>b = b & <NUM_LIT><EOL><DEDENT>c = chr(b)<EOL>if c != '<STR_LIT:c>':<EOL><INDENT>raise TypeError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>% (fp.name, c))<EOL><DEDENT>fp.seek(seek_pos)<EOL>return load_code_internal(fp, magic_int, code_objects=code_objects)<EOL>
marshal.load() written in Python. When the Python bytecode magic loaded is the
same magic for the running Python interpreter, we can simply use the
Python-supplied marshal.load().

However we need to use this when versions are different since the internal
code structures are different. Sigh.