Converting a python script into AMPL (AMPLIDE console) script

Dear Sir,

I normally use AMPL on AMPLIDE and I am familiar with its scripts. A friend shared with me a work that is written to implement the benders decomposition. However, the work is developed in python it is an amplpy file which I am not familiar with. Is there any other way to transform this amplpy file into a script that I can run as a .mod and .run file? attached is the amplpy file that I would like to transform into a kind of .mod and .run file in amplide console scripts.

Besides, I there anyone who developed a benders decomposition or a C&CG algorithm implementation scripts and they don’t mind sharing the script with me?

Ihope that you can help me in one or another way.

Regards
BD_simple_example.zip (1.7 KB)