def tee(iterable, *Qs):
    """ A generator yielding the items from an iterable
      which also copies those items to a series of queues.

      Parameters:
      * `iterable`: the iterable to copy
      * `Qs`: the queues, objects accepting a `.put` method.

      Note: the item is `.put` onto every queue
      before being yielded from this generator.
  """
    for item in iterable:
        for Q in Qs:
            Q.put(item)
        yield item
