Have you tried ChatGPT? Ive been using it to help me with excel at work. It can write code in any language. The new implementations for fiction are opaque, but in other areas its looking like a godsend for me.