add python code generated from test program 1