code: def normalizeXpath(xpath):
      
      new_xpath = []
      for x in range(0, len(xpath)):
          if x > 0 and len(xpath[x-1]) == 0:
              new_xpath.append("/"+xpath[x])
          elif len(xpath[x]) > 0:
              new_xpath.append(xpath[x])
      return new_xpath
docs: Normalize XPATH split around slashes
  
      :param xpath: List of xpath elements
      :type xpath: [str]
      :return: List of refined xpath
      :rtype: [str]