python: rename startup/shutdown hooks.