Parse this person name:

Anderson Gallagher, Michael T. Y. Amy Amy, 1580-1648
user
first_name: Michael
last_name: Anderson Gallagher
middle_names:
- T.
- Y.
- Amy
- Amy
temporal:
- start: 1580
  end: 1648
  type: life_span
titles: []
extra_info: []
assistant