<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def handle_scrollwheel(self, event):
 """Make endev from appkit scroll wheel event."""

        delta_x, delta_y, delta_z = self._get_deltas(event)
        if delta_x:
            self.events.append(
                self.emulate_wheel(delta_x, 'x', self.timeval))
        if delta_y:
            self.events.append(
                self.emulate_wheel(delta_y, 'y', self.timeval))
        if delta_z:
            self.events.append(
                self.emulate_wheel(delta_z, 'z', self.timeval))