def save_session(session):
 with open(SESSION_FILE, 'w') as res_file:
  json.dump(session, res_file)

def save_session ( session ) : with open ( SESSION_FILE , 'w' ) as res_file : json . dump ( session , res_file )
save your session ! .