def list_spots(parsed_trackmate_file):
    """Convert the raw spot data to a list of dictionaries.
    
    Args:
        parsed_trackmate_file (Document): TrackMate file parsed with minidom
    
    Returns:
        spots (list): List of dictionaries containing the attributes of each 
            spot.
    """
    spots = list()
    spots_by_frame = parsed_trackmate_file.getElementsByTagName("SpotsInFrame")
    for spots_curr_frame in spots_by_frame:
        curr_spots = spots_curr_frame.getElementsByTagName("Spot")
        for spot in curr_spots:
            att = dict(spot.attributes.items())
            spots.append(att)
    return spots