#NEWLINE# def _get_session( self , session_key ) : #NEWLINE# #INDENT# session = Session . get_by_key_name ( ( 'k:' + session_key ) ) #NEWLINE# if session : #NEWLINE# #INDENT# if ( session . expire_date > datetime . now ( ) ) : #NEWLINE# #INDENT# return session #NEWLINE# #UNINDENT# session . delete ( ) #NEWLINE# #UNINDENT# return None