Submits a #Job for each element in *function* and returns a #JobCollection.

def submit_multiple(self, functions, target=False, task=False):
    """
    Submits a #Job for each element in *function* and returns a #JobCollection.
    """

    if target or not task:
      return JobCollection([self.submit(target=func) for func in functions])
    else:
      return JobCollection([self.submit(task=func) for func in functions])