'Constructor.
Args:
rpcs: A list of UserRPC and MultiRpc objects; it is flattened
before being stored.
extra_hook: Optional function to be applied to the final result
or list of results.'

def __init__(self, rpcs, extra_hook=None):

    self.__rpcs = self.flatten(rpcs)
    self.__extra_hook = extra_hook
