redirect stdout and stderr of subprocess.call