def user_disconnect():    
    if session in 'session_key':
        users = mongodb_get_users()
        to_delete = users.find_one({'session_key': unicode(session['session_key'])})
        users.remove(to_delete) 
        session.pop('session_key', None)
    if fq.access_token:
        fq.access_token = False
dataset/ETHPy150Open finnp/squarewheel/squarewheel.py/user_disconnect/swapped operands of `in`