I'm issuing a script remotely via SSH python paramiko
stdin, stdout, stderr = host['connection'].exec_command(command)
However, I notice stdout does not get flushed until the remote command is completed. The remote script takes up to 60 seconds to complete but I can really use the data during that time to make decisions. Is it possible to force flush the stdout buffer during the remote command execution?