The Sims 4 Community Library has been released on the Nexus. If you are thinking of creating your own mod using Python scripts, check it out! It is an API that makes it very simple to utilize python within your mod.
https://www.nexusmods.com/thesims4/mods/287