code: def write_bus_data(self, file):
          
          writer = self._get_writer(file)
          writer.writerow(BUS_ATTRS)
          for bus in self.case.buses:
              writer.writerow([getattr(bus, attr) for attr in BUS_ATTRS])
docs: Writes bus data as CSV.