Thx...I finally got the following code to work (Thank you to Conor Hughes on Stack Overflow!):
import paramiko
ssh_client = paramiko.SSHClient()
ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh_client.connect(hostname='ssh.pythonanywhere.com',port=22,username='<myid>',password='<mypwd>')
s = ssh_client.open_sftp()
s.put(localfilepath,remotefilepath)
Note for anyone who might want to use this: localfilepath is the full path of the file on my laptop that I want to upload to PythonAnywhere, e.g, '/users/sunil/documents/config.csv' and remotefilepath is the full path of the resulting file after it is uploaded, e.g., '/home/<accountname>/targetfolder/config.csv' (the 'targetfolder' destination folder needs to already exist.)