import pickle


def compare_pickles(filename_1, filename_2):
    """Read in both pickles, and see if they match,
    and return both of them.
    
    Inputs:
        filename_1: string
        filename_2: string
        
    Outputs:
        pickle_equal: boolean - True iff the pickles have identical contents
        pickle_1: object from filename_1
        pickle_2: object from filename_2
    """
    pickle_1 = pickle.load(open(filename_1, "rb"))
    pickle_2 = pickle.load(open(filename_2, "rb"))
    pickle_equal = (pickle_1 == pickle_2)
    
    return pickle_equal, pickle_1, pickle_2