class MainPage(webapp2.RequestHandler):

    def get(self):
        self.response.headers['Content-Type'] = 'text/plain'
domain = self.request.get('domain')
cmd = ['gwhois', domain]
process = Popen(cmd, stdout=PIPE, stderr=PIPE)
output, err = process.communicate()
exit_code = process.wait()
self.response.write('stdout: %s' % output)
logging.info('stderr: %s' % err)
app = webapp2.WSGIApplication([('/', MainPage), ('/_ah/start', OkHandler),
    ('/_ah/health', OkHandler)], debug=True)
Cannot run Google App Engine custom managed VM: --custom-entrypoint must be set error