private void BkWorkerOnDoWork(object sender, DoWorkEventArgs doWorkEventArgs) { string firstFileData = PythonRunner.RunWithArgument(sourcePath); string secondFileData = PythonRunner.RunWithArgument(targetPath); doWorkEventArgs.Result = new Tuple <string, string>(firstFileData, secondFileData); }