Parse this person name:

Cosme Jorge Malena Lina O. Lupe Cabezas, Pontevedra, 1223-1287
user
first_name: Cosme
last_name: Cabezas
middle_names:
- Jorge
- Malena
- Lina
- O.
- Lupe
temporal:
- start: 1223
  end: 1287
  type: life_span
titles: []
extra_info:
- Pontevedra
assistant