def mk_default():
    print('mk_default has been called!')

def myfun(foo=mk_default()):
    print('myfun has been called.')
print('about to test functions')
myfun('testing')
myfun('testing again')
Python : How to pass default argument to instance method with an instance variable?