docs: def dump(self, fileobj):
          '''Handles the writing of the dict to the file object'''
          if self.file_format == 'csv':
              csv.writer(fileobj).writerows(self.raw_dict().items())
          elif self.file_format == 'json':
              json.dump(self.raw_dict(), fileobj, separators=(',', ':'))
          elif self.file_format == 'pickle':
              pickle.dump(dict(self.raw_dict()), fileobj, 2)
          else:
              raise NotImplementedError('Unknown format: ' +
                                        repr(self.file_format))