<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def focus_next_matching(self, querystring):
 """focus next matching message in depth first order"""

        self.focus_property(lambda x: x._message.matches(querystring),
                            self._tree.next_position)