Fix Python – SFTP in Python? (platform independent)

I’m working on a simple tool that transfers files to a hard-coded location with the password also hard-coded. I’m a python novice, but thanks to ftplib, it was easy:
import ftplib

info= (‘someuser’, ‘password’) #hard-coded

def putfile(file, site, dir, user=(), verbose=True):
“””
upload a file by ftp to a site/directory
login hard….