docs: def get_status(self, response, finished=False):
          """Given the stdout from the command returned by :meth:`cmd_status`,
          return one of the status code defined in :mod:`clusterjob.status`, or
          None if the status cannot be determined"""
          lines = [line.strip() for line in response.split("\n")
                  if line.strip() != '']
          last_line = lines[-1]
          if last_line.startswith('qstat: Unknown Job'):
              return COMPLETED
          else:
              try:
                  status = lines[-1].split()[4]
                  return self.status_mapping[status]
              except (IndexError, KeyError):
                  return None