Scripting in this repository is purpose built for this task and not generalized beyond the scope of the project. You're welcome to use it for whatever you want, but my purpose in building it is extremely task specific. Don't be surpised if you sub the data for other data and it doesn't work without alteration to the logic.
Source Lua files are stored in /lua_src/
.
Source Lua files were copied from [wherever you host your steam library]/SteamLibrary/steamapps/common/Factorio/factorio.app/Contents/data/base/prototypes
Python is written for Python 3.5. If it works outside of that, bonus!