Parse this person name:

Karels Mahieu, Sami K., 1265-1324
user
first_name: Sami
last_name: Karels Mahieu
middle_names:
- K.
temporal:
- start: 1265
  end: 1324
  type: life_span
titles: []
extra_info: []
assistant