popitem to use pop
DictView instead of DirView