Might try chat gpt to write py code, and tell it running locally. Does really well with being given the docs of a package and spitting out desired syntax type thing especially, or getting string od packages to play nice together.