You shouldn't need to define a function because it's not going to be called by anything else. Just include the code to execute. I believe execute_script takes additional arguments that will be passed to the script.

Also, do not use \ to separate new lines. Use """ and you can align the code as if it's JavaScript rather than Python.