def prepare_module(self):
        """
        Ready the module to get it ready to start.
        """
        # Modules can define a post_config_hook() method which will be run
        # after the module has had it config settings applied and before it has
        # its main method(s) called for the first time.  This allows modules to
        # perform any necessary setup.
        if self.has_post_config_hook:
            try:
                self.module_class.post_config_hook()
            except Exception as e:
                # An exception has been thrown in post_config_hook() disable
                # the module and show error in module output
                self.terminated = True
                self.error_index = 0

                self.error_messages = [
                    self.module_nice_name,
                    f"{e}",
                ]
                self.runtime_error(self.error_messages[1], "post_config_hook")
                msg = f"Exception in `{self.module_full_name}` post_config_hook() : {self.error_messages}"
                self._py3_wrapper.report_exception(msg, notify_user=False)
                self._py3_wrapper.log(f"terminating module {self.module_full_name}")
        self.enabled = True

        Ready the module to get it ready to start.
        
py3status/module.py