code: def store_contents(self):
          
          string_buffer = os.linesep.join(
              map(
                  lambda x: os.linesep.join(
                      ["<begin_table>"] + [x.name] + x.columns + ["<end_table>"]
                  ),
                  self.tables
              )
          )
  
          with open(METADATA_FILE, "w") as f:
              f.write(string_buffer)
  
          for i in self.tables:
              i.store_contents()
docs: Stores the contents of tables into file.