#NEWLINE# def get_session_information( ) : #NEWLINE# #INDENT# ppid = os . getppid ( ) #NEWLINE# start_time_command = 'ps -p {0} -o lstart | sed -n 2p' . format ( ppid ) #NEWLINE# date_string = os . popen ( start_time_command ) . read ( ) . strip ( ) #NEWLINE# date = dateutil . parser . parse ( date_string ) #NEWLINE# start_time = ( int ( mktime ( date . timetuple ( ) ) ) * 1000 ) #NEWLINE# return ( ppid , ppid )