#coding=utf-8
class NamedList(list):
    def __init__(self,a_name):
        list.__init__([])
        self.name = a_name

johnny = NamedList("John Paul Jones")
print(type(johnny))
print(dir(johnny))
johnny.append('Bass player')
johnny.extend(['Composer','Arranger','Musician'])
print(johnny.name)
for attr in johnny:
    print(johnny.name+" is a "+attr+".")
