client = paramiko.SSHClient()
client.load_system_host_keys()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect('hostname', username='user', password='pass')
stdin, stdout, stderr = client.exec_command('python your_script.py 2> \\&1')
print(stdout.read())
paramiko combine stdout and stderr