@update_variables<EOL><INDENT>def action(self, includes: dict, variables: dict) -> tuple:<DEDENT>
json_args = fill_template_str(json.dumps(self.data), variables)<EOL>p = subprocess.Popen([self.module, json_args], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)<EOL>if p.wait() == <NUM_LIT:0>:<EOL><INDENT>out = p.stdout.read().decode()<EOL>debug(out)<EOL>return variables, json.loads(out)<EOL><DEDENT>else:<EOL><INDENT>out = p.stdout.read().decode()<EOL>warning(out)<EOL>raise Exception('<STR_LIT>')<EOL><DEDENT>
Call external script.

:param includes: testcase's includes
:param variables: variables
:return: script's output