This could prove useful for some of the checks used when building tables. Examples such as: https://docs.python.org/3/library/collections.html#collections.defaultdict Could prove useful and worth playing with.