<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remotes(self):
 """Return the names and URLs of the remotes"""

        from ambry.orm import Remote
        for r in self.database.session.query(Remote).all():
            if not r.short_name:
                continue

            yield self.remote(r.short_name)