def delegate(from_owner, to_owner, methods):
  """Creates methods on from_owner to call through to methods on to_owner.

  :from_owner: the object to delegate to
  :to_owner: the owner on which to delegate from
  :methods: a list of methods to delegate
  """
  for method in methods:
    _delegate(from_owner, to_owner, method)
Creates methods on from_owner to call through to methods on to_owner.

  :from_owner: the object to delegate to
  :to_owner: the owner on which to delegate from
  :methods: a list of methods to delegate