#NEWLINE# def serve( env , start_response ) : #NEWLINE# #INDENT# start_response ( '200 OK' , [ ] ) #NEWLINE# body = read_input ( env ) #NEWLINE# body = json . loads ( body ) #NEWLINE# if ( body [ 'params' ] != [ ] ) : #NEWLINE# #INDENT# return handle_submit ( ) #NEWLINE# #UNINDENT# return handle_getwork ( )