class Person(object):

    def __init__(self, person_name, family):
        self.person_name = person_name
self.family = family

def __str__(self):
    return ' '.join((self.person_name, self.family.family_name))


class Family(object):

    def __init__(self, family_name):
        self.family_name = family_name
self.members = []

def add_person(self, person_name):
    person = Person(person_name, self)
self.members.append(person)
return person

def __str__(self):
    return 'The %s family: ' % self.family_name + ', '.join(str(x) for x in
        self.members)
Как установить и получить атрибут родительского класса из унаследованного класса в Python?