1. Refactored get_cv_local method to use python with keyword.  2.  Added helper function to wrap lxml.Element.xpath function.