"xpath" isn't a great variable name, how about a_tag ?