<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getcoordinates(self, tree, location):
 """Gets coordinates from a specific element in PLIP XML"""

        return tuple(float(x) for x in tree.xpath('.//%s/*/text()' % location))