python script for filtering a set of xpaths out of an xml document, and producing json data for them