postscriptum (pypi): An unified API to run code when Python exits
Keywords: atexit|excepthook|exception|exit|hook|signal