def parse_name(text: str) -> dict:
    """Parse out a personal name in form 'last, first'.  Return as a dict."""
    if "," in text:
        return dict(zip(['last', 'first'],
                        (x.strip() for x in text.split(","))))
    else:
        return {'last': text.strip()}