Samsung tv (python?)

I found a python script that works for samsung tv’s called samsungctl and i can issue commands to my tv to power on/off from python on a linux box. is there anyway to make a switch in smartthings to do this?