**I want to create a program that transforms a list from this:**

```
['H.Geffner/AI:FromProgramstoSolvers7', 'R.DeSousa.', 'R.Dechter.', 'H.Dreyfus.', 'J.Elster.', 'J.Evans.Dual-processingaccountsofreasoning,judgment,', 'H.Geffner.Heuristics,planning,cognition.InR.Dechter,', 'H.Geffner,andJ.Y.Halpern,editors,', 'H.Geffner.Computationalmodelsofplanning.', 'M.Genesereth,N.Love,andB.Pell.Generalgameplay-', 'G.Gigerenzer.', 'G.GigerenzerandP.Todd.', 'A.Gopnik,C.Glymour,D.Sobel,L.Schulz,T.Kushnir,and']

```

**to this:**

```
['H.Geffner', 'R.DeSousa', 'R.Dechter', 'H.Dreyfus', 'J.Elster', 'J.Evans', 'H.Geffner', 'H.Geffner', 'H.Geffner', 'M.Genesereth', 'G.Gigerenzer', 'G.Gigerenzer', 'A.Gopnik', 'C.Glymour', 'D.Sobel', 'L.Schulz', 'T.Kushnir']

```

All the names are separated from the other information by '.', 'and' or ','

Iv'e tried separating them by counting the number of '.' it has and when it reaches 2 it appends that item to a new list without the extra info but I think there might be a different way of doing it. 

This is what I've got so far. 

```
names = (the huge list I showed above)
just_names = []
current_name = ""
number_of_periods = 0
for item in names:
    index = 0
    while index < 8:
        if item[index] != ".":
            current_name = current_name + item[index]
           # print(current_name)
            index = index + 1
        else:
            number_of_periods= number_of_periods+ 1
            index = index + 1
            if ponto >= 2:
                just_names.append(current_name)
                current_name = ""

```