Python XPath queries on source code marked up in XML