How To Generate Code In Python