code: def request_and_get_output(self, table, outtype, outfn):
          
          job_id = self.request_output(table, outtype)
          status = self.monitor(job_id)
          if status[0] != 5:
              raise Exception("Output request failed.")
          self.get_output(job_id, outfn)
docs: Shorthand for requesting an output file and then downloading it when
          ready.
  
          ## Arguments
  
          * `table` (str): The name of the table to export.
          * `outtype` (str): The type of output. Must be one of:
              CSV     - Comma Seperated Values
              DataSet - XML DataSet
              FITS    - Flexible Image Transfer System (FITS Binary)
              VOTable - XML Virtual Observatory VOTABLE
          * `outfn` (str): The file where the output should be stored.
              May also be a file-like object with a 'write' method.