I don’t think you’ve understood the difference between what you can do with wolfram vs. python.
Have a read of https://www.wolfram.com/language/elementary-introduction/3rd... and play with some examples maybe?
The tldr; is “yes, but…” and the “but” is that, no, generating/invoking python functions from an LLM is no where even remotely near the capabilities exposed by their online systems.
Yeah yeah, “but there’s a python library for that…”, no really. Have a play with it. There isn’t, for lots of the stuff it can do.