with open(localpath, "wb") as fl: IOError: [Errno 21] Is a directory: '/Users/ratha/Desktop'
pysftp /Users/ratha/Desktop documentation
pysftp
/Users/ratha/Desktop
os.path.join('/Users/ratha/Desktop', filename)