class FunctionalFunction(object):

    def __init__(self, func):
        self.func = func

def __call__(self, *args, **kwargs):
    return self.func(*args, **kwargs)

def __add__(self, other):

    def summed(*args, **kwargs):
        pass
Как добавить функции