I have python script and the following line uses to scp a file to another server. For some reason, I am not able to get it working. Are you seeing any issue here?
remoteFile = os.path.join(dest['path'], item.filename)
os.system('/usr/bin/scp "%s" "%s@%s:$s' % (fullpath, dest['username'], dest['server'], remoteFile))