<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def kill_all(self, kill_signal, kill_shell=False):
 """Kill all running processes."""

        for key in self.processes.keys():
            self.kill_process(key, kill_signal, kill_shell)