Dynamic Gcode Scaling Remote TCP

I have a python function that scales G-code horizontally by a given factor. I also have a folder where I created G-code for block letters of all the alphabet. We are doing a showcase where we will enter a kids name and the cobot will write the name on a card for them to keep. I have used Rtde API to communicate with the robot, but have never worked with URscript. It seems this is the only way to execute gcode? or i could scratch gcode and have collection of points to moveL, but i do not know of a moveC (circular) command. I guess im just looking into how i can have gcode that is modified by my python function based on the user input, but uploaded to the UR to be executed.