Format Using Python String Methods Contains Xpath