* toml is getting removed from distributions due to being generally
unmaintained and not support the lastest TOML standard.
* For parsing use tomllib which is included in python3.11 and tomli for
earlier interpeter versions.
* For writing use tomli-w. tomli-w.dump() expects bytes-like objects so
work around it to keep compatability and minimize changes elsewhere.
Signed-off-by: Alfred Wingate <parona@protonmail.com>