def findLocations(data, single=False):
    """Extract the path from a location tag

    Args:
        data (xml.etree.ElementTree.Element): xml from PMS as Element
        single (bool, optional): Only return one

    Returns:
        filepath string if single is True else list of filepaths
    """
    locations = []
    for elem in data:
        if elem.tag == 'Location':
            locations.append(elem.attrib.get('path'))
    if single:
        return locations[0] if locations else None
    return locations