code: def pos(self):
          
          for i, task in enumerate(self.work):
              if self == task:
                  return self.work.pos, i
          raise ValueError("Cannot find the position of %s in flow %s" % (self, self.flow))
docs: The position of the task in the :class:`Flow`