#NEWLINE# def save_session( l , filename ) : #NEWLINE# #INDENT# '\n      save your session !\n\n      :param l: a list of objects\n      :type: a list of object\n      :param filename: output filename to save the session\n      :type filename: string\n\n      :Example:\n          save_session([a, vm, vmx], "msession.json")\n  ' #NEWLINE# with open ( filename , 'w' ) as fd : #NEWLINE# #INDENT# fd . write ( dumps ( l , ( - 1 ) ) )