I have a python code that executes an scp command and attempts to process the output.
scp
def execute(command): with subprocess.Popen(shlex.split