Do you have a link for dxftogcode? I am finding several programs under similar names (both dxf2gcode and dxftogcode).
I’m going to take a stab at TurnkeyTyranny. It looks like quite a daunting task though. I am new to python as well so please share if you find any interesting and helpful guides!