Python pre27 compat

The previous solution to avoid the python-lxml dependency does only work on python2.7 or newer. Before that version xml.etree does not support ".." in xpath expressions. So the findall(".//Path/..") fails. This patch fix this by manually building a parent map and using this to get the parent of the <Path> elements.