docs: def limit(self, keys):
          ''' Remove all keys other than the keys specified.
          '''
          if not isinstance(keys, list) and not isinstance(keys, tuple):
              keys = [keys]
          remove_keys = [k for k in self.keys() if k not in keys]
          for k in remove_keys:
              self.pop(k)