class DynDefault(object):

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

def __call__(self):
    return self.callback()

def dyn_default(func):

    def wrapper(*args, **kw):
        pass
Dynamic default arguments in python functions