Python and xbmc

How you can turn on a switch from a python script?

Thanks

It seems your best bet is to probably implement a Web Service SmartApp: http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/implementation.html