<s> class Service : <EOL> def echo ( self , msg ) : <EOL> return msg <EOL> def reverse ( self , msg ) : <EOL> return msg [ : : - <NUM_LIT:1> ] <EOL> def uppercase ( self , msg ) : <EOL> return msg . upper ( ) <EOL> def lowercase ( self , msg ) : <EOL> return msg . lower ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from jsonrpc . cgihandler import handleCGIRequest <EOL> handleCGIRequest ( Service ( ) ) <EOL> else : <EOL> from jsonrpc . apacheServiceHandler import handler </s>
