def information_extraction(object_list):
    """
    Takes a PDB object list with ids of the form path/Uniprot_id.DNA.PDB_id (coming from the Parsed filenames).
    Extracts the Uniprot id and PDB id information from the object id.
    Returns a dictionary of dictionaries where outer keys are Uniprot ids, inner keys are PDB ids and the values are lists of all the objects that have the given Uniprot id and the PDB id.
    The dictionary will have the form:
    dict{ Uniprot id : {PDB id: [PDB objects],
                        PDB id: [PDB objects]},
                       {PDB id: [PDB objects]}
        }
    """
    my_dict = {}
    for object in object_list:
        namefile = object.id.split("/")[-1]
        uniprot_id = namefile.split(".")[0]
        PDB_id = namefile.split(".")[2]
        object.id = uniprot_id + "." + PDB_id
        my_dict.setdefault(uniprot_id, {})
        my_dict[uniprot_id].setdefault(PDB_id, []).append(object)

    return my_dict