def write_index(self):
self.fileobj.seek(self.last_offset)<EOL>index = index_header.build(dict(entries=self.entries))<EOL>self.fileobj.write(index)<EOL>self.filesize = self.fileobj.tell()<EOL>
Write the index of all our files to the MAR file.