<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def run(self):
 """ Main process loop. """


        self._prepare()

        while self.running:
            if self._run() is False:
                break
            time.sleep(self._sleep_period)

        self.shutdown()