Это код:
stdin, stdout, stderr = client.exec_command(krd_spot 7/5/2019 -df UYU_GOVT_RR -debug DISCFUNC |& less)
out = stdout.read().decode('utf-8')
err = stderr.read().decode('utf-8')
print(out)
Это ошибка:
File "<ipython-input-15-2085d261d263>", line 1
stdin, stdout, stderr = client.exec_command(krd_spot 7/5/2019 -df UYU_GOVT_RR -debug DISCFUNC |& less)
^
SyntaxError: invalid syntax