def short_name(name, max_subparts=1):
    """
    Take only first subpart of string if it contains more than one part.
    Used to extract only first part of first name.
    """
    return ' '.join(name.split(' ')[:max_subparts])