TOML is a file format which is an alternative to YAML. The TOML format is the latest method of configuring a python file, so it may make sense to also use this format here.
The pytoml package provides an interface to reading/writing this file format.