def connect_sftp_with_cb(sftp_cb, *args, **kwargs):
with _connect_sftp(*args, **kwargs) as (ssh, sftp):<EOL><INDENT>sftp_cb(ssh, sftp)<EOL><DEDENT>
A "managed" SFTP session. When the SSH session and an additional SFTP 
    session are ready, invoke the sftp_cb callback.