Why wouldn't you use Python as your configuration language?

Have you seen Starlark? It's not too far from that, but safer in a number of ways: https://github.com/bazelbuild/starlark