<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_command_on_event(self, command, phase=phases.ASAP):
 """Run the given command on a given phase. :param str|unicode command: :param str|unicode phase: See constants in ``Phases`` class. """

        self._set('exec-%s' % phase, command, multi=True)

        return self._section