<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prefix(self, prefix):
 """ Adds a prefix to routes contained within. """

        original_prefix = self._prefix
        self._prefix += prefix
        yield self
        self._prefix = original_prefix