Use tomllib on Python 3.11 or later and tomli instead of toml library on lower versions - by gaborbernat.