Well, I could generate assembly, spawn Nasm as a subprocess, pipe the assembly in, and not worry about creating files / deleting files / worrying about old code fragments. Like I said, not really important, was just my initial approach.
Best regards,
Janis