check_execute calls `subprocess.check_output` as an easy way to get the program's output so errors can be more informative. This means that `stdout` cannot be given as a keyword argument to `check_output`, because output is already being channeled to form the return value of `check_output`. The instance of `check_execute` in this file needs to write its output to a file, thus it cannot use `check_execute` in its current form. I should really modify `check_execute` to use `Popen` directly as opposed to `check_output`, but this was just a quick hack.