code: def __basepl(self, content, rec_type='flat', format='json'):
          
          d = {'token': self.token, 'content': content, 'format': format}
          if content not in ['metadata', 'file']:
              d['type'] = rec_type
          return d
docs: Return a dictionary which can be used as is or added to for
          payloads