With every Python release, there are new modules being added and new and better ways of doing things get introduced. We all get used to using the good old Python libraries and to certain way of doing things, but it's time upgrade and make use of the new and improved modules and their features.
os.path
-> pathlib
os.urandom
-> secrets
pytz
-> zoneinfo
namedtuple
-> dataclasses
logging
.tomli
-> tomllib
distutils
-> setuputils