Perhaps you could use
paramiko to build ssh tunnel and subprocess with rsync to copy the folder. Or to use subprocess for all tasks. According to
this example, it's not quite simple. I've never used paramiko. But this will work on Linux OS. I don't know if there is rsync for Windows.