def getPathsByKeys(keys, xmlElement):
 pathsByKeys = []
 for key in keys:
  pathsByKeys += getPathsByKey(key, xmlElement)
 return pathsByKeys

def getPathsByKeys ( keys , xmlElement ) : pathsByKeys = [ ] for key in keys : pathsByKeys += getPathsByKey ( key , xmlElement ) return pathsByKeys
get paths by keys .