Its not parsing the output, its parsing whats returned from stderr and since return_output isn't set in the arguments to run_module. stdout is exec'ed and stderr is run through the output parsing code later in the run_module function and it happens to match the same output as the available code.