I had Google Gemini 3 write me a part using human language about 3 weeks ago for a 3D printing project.
I specifcally had it spit out a FreeCAD macro, which is basically Python that looks like what you've made.