<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def scan(self, ids=range(254)):
 """ Pings all ids within the specified list, by default it finds all the motors connected to the bus. """

        return [id for id in ids if self.ping(id)]