Run programme on smartplug

Hi,
I found the demo of smartplug: http://www.digi.com/wiki/developer/index.php/Smart_Plug_and_iDigi_Demo
and I upload it to gateway net interface, the part “File management”, and the part “Python”. But the light “Active” is alway gray.
How could I run this programme to my samrtpulg, control it open and close at a specified time?
Thank you very much.

What happens if you run the python application from the command line of the gateway?

#> py smartplug_idigi.py

Also, it is important to note that this python application will not work on X2e/XBee gateways, it will only work on ConnectPort X2, X4 and X8 gateways (NDS based rather than Linux).