Make paramiko remote calls finish remote execution before continuing