>>882
from collections import defaultdict
history = defaultdict(list)
history[123].append([1,2,3,4,5])