I\'m working on a script (python 2.7) that is wotking with a remote device running Cisco IOS, so I need to execute a lot of commands through ssh. Few commands have no output
You need to properly chain the commands together, as in a shell script:
stdin, stdout, stderr = ssh.exec_command(''' command1 && command2 && command3 ''')