The implementation for your klasse
should be like the following :
class klasse(object):
# name = [] if this was the case, the name would be a class variable,
# and all instances would share it
def __init__(self, value):
self.name = [] # but now it is a separate for each instance
self.add_name(value)
def add_name(self, value):
self.name.append(str(value))
edit: incorporated @Jon Clements's suggestion.