<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def insert(self, index = 0, *widgets):
 """insert widget in the sprites list at the given index. by default will prepend."""

        for widget in widgets:
            self._add(widget, index)
            index +=1 # as we are moving forwards
        self._sort()