Python XPath Domain Specific Language