#NEWLINE# def handle_response( self , response ) : #NEWLINE# #INDENT# "Accept the response proto object and switch back to the robot\n        greenlet to process it before returning it to the user's code." #NEWLINE# request = self . robot_greenlet . switch ( response ) #NEWLINE# if request : #NEWLINE# #INDENT# self . protocol . send_request ( request ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logging . info ( 'Received null request, ending.' ) #NEWLINE# self . loop . stop ( )