TenjintShell.
save_sys_module_state
Save the state of hooks in the sys module.
This has to be called after self.user_module is created.