def _disconnect_session(session):
 session['client'].auth.logout(session['key'])

def _disconnect_session ( session ) : session [ 'client' ] . auth . logout ( session [ 'key' ] )
disconnect api connection .