class FunctionProxy:
    """Allow to mask a function as an Object."""

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

def __call__(self, *args, **kwargs):
    return self.function(*args, **kwargs)
Перечисления Python 3 со значениями функций