def get_places(filenames):
    """
    Gets places of tif imagery from filenames in list. Assumes names are of form
    <country>_<img type>_<place name>.tif|_<date info>.tif
    """
    places = []
    for f in filenames:
        place = f.split('_')[2]
        if place.find('tif') != -1: place = place[:-1]
        places.append(place)
    return places