<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def xpath(self, expression):
 """Executes an xpath expression using the correct namespaces"""

        global namespaces
        return self.tree.xpath(expression, namespaces=namespaces)