Ren'Py main purpouse is to be a runtime for Ren'Py project, but there are reasonable use cases (e.g. Ren'Py tooling) for using Ren'Py as a library, and in that case having imports mutate global state ...
Ren'Py development takes place on the master branch, and occasionally on feature branches. Ren'Py depends on a number of Python modules written in Cython and C. For changes to Ren'Py that only involve ...