MyController supports to execute operations from script. You can pass bindings as JSON key-values. For now we cannot pass dynamic detail from Operations. But you have query options to communicate with MyController. You can get details like Node, Gateway, Sensors, Rules, Operations, etc., Refer MyController document on downloads page
MyController supports for Python scripts. But by default it's not shipped with Python-Java support engine which is www.jython.org
Steps to add new script engine
Download jar file and place it under mycontroller/lib/ and restart MyController services.
For example if you want to add Python support on MyController, you need to add Jython library.
Download jython-standalone-*.jar from Jython website.
Place it under mycontroller/lib/