implementing search as a cherrypy ws