docs: def lookup_task(self, task):
          """
          Looks up a task by name or by callable
          """
          if isinstance(task, str):
              try:
                  return self[task]
              except KeyError:
                  pass
          raise TaskError('Unknown task %s' % task)