filepath = 'some/complete/path/to/file'
hostname = 'user@remote_system'
remote_path = 'some/remote/path'
subprocess.call(['scp', filepath, ':'.join([hostname, remote_path])])
Secure Copy File from remote server via scp and os module in Python