UserDict is not formally deprecated but it will be someday, so code that relies on it is not future-proof.