def append(self, key, value):
if key in self:<EOL><INDENT>self[key].append(value)<EOL><DEDENT>else:<EOL><INDENT>self[key] = [value]<EOL><DEDENT>
Makes sure the value pointed to by key exists and is a list and appends the given value to it.