code: def query_job_status(self, submissionid):
          
  
          apiurl = '/rest/submission/'
          result = self.session.get('{}{}{}'.format(self.url, apiurl, submissionid))
          if result.status_code == 200:
              submission_info = json.loads(result.text)
              if submission_info.get('data', {}).get('submission_finished', False):  # Or something like that
                  return True
          else:
              raise UnknownSubmissionIdError('Submission id seems invalid, response was not HTTP 200.')
          return False
docs: Queries vmray to check id a job was 
          
          :param submissionid: ID of the job/submission
          :type submissionid: int
          :returns: True if job finished, false if not
          :rtype: bool