<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def urls(self):
 """Returns a generator of all URLs attached to this API"""

        for base_url, mapping in self.routes.items():
            for url, _ in mapping.items():
                yield base_url + url