Remove and return a (key, value) pair as a 2-tuple. Removes pairs in the same order as the wrapped mapping's popitem() method. For dict objects (the default), that order is last-in, first-out (LIFO). Raises KeyError if the UserDict is empty.
collections/UserDict.popitem
UserDict.popitem