As far as I can tell your code radio.py contains the lines:
Which is not valid Python.
Firstly Python expects white space indentation after an "if"
Secondly you have pasted your command prompt into the code "[email protected]
:~ $ /etc/init.d/radio"
Thirdly even without that you cannot just run a command from Python like that. You need to do it as described here:
http://fastml.com/how-to-run-external-p ... ir-output/
Memory in C++ is a leaky abstraction .