Im trying to write data that is stored as objects to a txt file but i\'m not sure how.
the function im trying to write is \'def write_to_file(filename, profile_list):