def first():
print("Executing the first function.")
def second(_):
print("Executing the second function.")
def third(a, b, c, d):
print("Executing the third function.")
print(len(a + b + c + d))
import atexit
atexit.register(first)
atexit.register(second, "some argument which will be ignored")
atexit.register(third, "there", "are", "four", "args")