def __call__(self, x): h = x for key, funcs in self.functions.items(): for func in funcs: h = func(h) return h