Run programme on smartplug

I found the demo of smartplug:
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

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).