code: def append(self, key, item):
          
          with self._lock:
              if key in self._dict:
                  self._dict[key].append(item)
              else:
                  self._dict[key] = [item]
docs: Append item to the list at key. Creates the list at key if it
          doesn't exist.