<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, string):
 """ Like findall, but also returning matching start and end string locations """

        return list(self._scanner_to_matches(self.pattern.scanner(string), self.run))