python
import name
parsed_name = name.parse(full_name)
print(parsed_name.first)
print(parsed_name.last)
python
from nameparser import HumanName
full_name = "John von Neumann Jr."
parsed_name = HumanName(full_name)
print(parsed_name.first)
print(parsed_name.last)
print(parsed_name.middle)
print(parsed_name.suffix)
pip install nameparser