def register(func, *targs, **kargs):
    _exithandlers.append((func, targs, kargs))
register a function to be executed upon normal program termination
dataset/ETHPy150Open babble/babble/include/jython/Lib/atexit.py/register