commands = ['sudo growpart /dev/xvdd 1',
            'sudo e2fsck -fy /dev/xvdd1',
            'sudo resize2fs /dev/xvdd1']
 
for command in commands:
    stdin, stdout, stderr = mysshclient.exec_command(command)
    print(stderr.readlines())
    print(stdout.readlines())
